Jump to content

Help understanding Character Sets for PHP and phpMyAdmin


Recommended Posts

I'm working on a new PHP + MySQL site which uses data from a FileMaker Pro database, and I'm hoping someone can help me understand how I should organise the character sets to properly deal with 'non-standard' characters.

 

My client uses a FileMaker database, which they export as 'CSV' and then import into phpMyAdmin.

 

My confusion started when I tried to convert the non-standard characters to their HTML equivalents, e.g. convert a GB Pound sign to £ or £

I couldn't work out how to use PHP to convert those characters when the data was being exported out of FileMaker as "Windows (ANSI)". So I tried exporting from FileMaker as "Unicode (UTF-8)".

 

Exporting as UTF-8 does seem to work, but my data now appears scrambled when I view it in phpMyAdmin. So I'm wondering if I need to change the character set of the MySQL database somehow?

On the phpMyAdmin home page I can see a drop-down menu of character sets for "Language", but I'm a bit scared of changing that in case it messes up any of my other databases...

 

So my head is spinning at the moment and I'm hoping someone can help me understand what the issues are here and how I should deal with the character sets.

 

Thanks in advance!

 

Steve

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.