Monday, September 08, 2008

Strange characters ’ and  in Wordpress posts

After a wordpress upgrade we started to get all kinds of weird symbols in our posts, including  and ’. I figured it was a character encoding mismatch problem and a quick search on the Wordpress forums confirmed it. You have to comment out two lines in your wp-config.php file (found in your main blog directory). These are the two lines:
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', '');

Comment them out like this:

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

Fixed our problem.

Labels: ,