I have a database containing the translations for several keywords.
I am accessing those translations and with many of the french words there are characters that don’t appear in the English language. The accented e for example. (I will be later translating to other languages and I’m sure the same issue will come about.)
Keeping in mind that these translations are coming from a MySQL database, is there any way around this? I tried changing the charset from utf-8 to iso 8859-1 but that didn’t make any difference.
Any guidance would be very warmly received!
Thanks
I would set client encoding to UTF-8 and Database collation utf8_bin.
How do you exactly insert the words in your database? Do you translate the words automatically and insert them or do you do this by hand.
You can also set your connection collation to UTF8.
——– UPDATE ——-
To enforce character set connection in your PHP, just add after the connection the following:
If it doesn’t work try enforcing character set to utf8 too in your script.
And remember to clean all of your data and re-insert after the modifications, before you try to make any calls to the database.