Problem With Solutions

Something Different In Linux

Home » CMS » Wordpress » Strange characters ’ and  in WordPress posts

Strange characters ’ and  in WordPress posts

Posted by Rishikesh Vispute Categories: Wordpress

Error : 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.

Solution:
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.


Optimized by SEO Ultimate