I recently had encoding problems with apostrophes (‘), quotation marks (“) and hyphens (-) as well as double spaces. They’d be displayed as question marks or “’” or “”.
Mr Chow has an easy fix that worked perfectly.
Turns out that the fix is really simple. By default, the WordPress config files now set your character encoding to UTF-8. The solution is to open up wp-config.php file and located these lines:
define(’DB_CHARSET’, ‘utf8′);
define(’DB_COLLATE’, ”);
and either remove the “utf8″ string so the first line becomes:
define(’DB_CHARSET’,”);
define(’DB_COLLATE’, ”);
at the same time i took a moment to update the secret keys in the wp-config file with ‘salt‘ to bring that security layer up to date.
via Strange characters after WordPress upgrade | Trevin Chow.
4 Comments
Even better change the utf8 to utf-8
Although i have problems with some plugins
Life saver, thanks!
Works great 🙂
it worked!
Thank you