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.
1 Answer
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', '');