Strange characters on wordpress site – Not UTF8 Issue

I’ve imported WordPress post data onto a new site and noticed I have strange characters showing on pages and Blog posts.

It usually shows where apostrophes should be.

I’ve searched multiple solutions to UTF8 & latin1 solutions with success. I’ve looked at my database and the characters are showing there too.

strange characters in post

strange characters in database

1 Answer
1

What is your database encoding? Try to switch to utf8mb4.

Alternatively, try to add one of these lines in your wp-config.php file:

define('DB_CHARSET', 'latin1');
define('DB_COLLATE', '');

or

define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

or

define('DB_CHARSET', 'utf8mb4');
define('DB_COLLATE', '');

Leave a Comment