Reputation: 3445
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.
Upvotes: 2
Views: 2027
Reputation: 535
Try this
<?php echo mb_convert_encoding($yourVariable, 'UTF-8', 'ASCII'); ?>
Upvotes: 1
Reputation: 1013
I had a similar problem with UTF-8 and this worked for me:
$link->set_charset("utf8");
Upvotes: 4
Reputation: 51
Are you sure your meta tag Content-Type
is set to UTF8?
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
HTML5
<meta charset="utf-8">
Upvotes: 3