Character set issues with utf8mb4 being displayed as utf8
-
I don’t know if this is a WordPress bug or not.
Locally my wp-config has DB_CHARSET as utf8mb4 – however in the head the meta charset is outputting as UTF-8 when I look at the source. The theme has
<meta charset="<?php bloginfo( 'charset' ); ?>">
Locally there is no problem, but since uploading to two separate servers, certain characters – particularly sterling (pound) symbols (ie £) are invalid and shown as black diamonds with question marks.
Looking at the database these characters are stored correctly, but both wp-admin on the dashboard and the site have these black diamonds with question marks.
If I change the wp-config from
define('DB_CHARSET', 'utf8mb4');
todefine('DB_CHARSET', 'utf8');
it shows things correctly.
- The topic ‘Character set issues with utf8mb4 being displayed as utf8’ is closed to new replies.