jAC jAC - 1 month ago 11
MySQL Question

html5 displaying � instead of the french character

I have been beating my head off the wall trying to figure out why my french characters are show up like "cr�� notre site Web" rather than "créé notre site Web"

My Encoding is set to UTF-8, language is fr. Some other characters work fine just not the e's and a's.

For example "L’opinion de notre clientèle" shows up just fine.

MySQL is storing the data as utf8_unicode_ci. When I browse the data in MySQL it looks fine as well.

My Browser is set to utf-8 as well

Any thoughts would be appreciated.

Answer

I had a similar problem with UTF-8 and this worked for me:

$link->set_charset("utf8");