0

I'm converting some the_content() in wordpress to UTF-8, this line works fine locally.

$html = mb_convert_encoding($content, 'HTML-ENTITIES', "UTF-8");

And all of my text comes out as normal.

When I go live I get character encoding problems, it's as thought mb_convert_encoding is no longer working, or something else is causing my encoding problems.

For instance a £ symbol outputs "£".

They are using the same database, but I've converted the live one to utf8_unicode_cli anyway, I have meta charset="utf-8" I have header('Content-Type: text/html; charset=utf-8'); placed in my functions.php and on my single.php.

I'm not sure what else could be interfering.

UzumakiDev
  • 1,286
  • 2
  • 17
  • 39

0 Answers0