Strange characters after WordPress upgrade
After I upgraded my last wordpress installation on my blog and on Green Is Sexy, strange characters were appearing in our content throughout the site. There seemed to have been encoding problems with apostrophes (‘), quotation marks (“) and hyphens (-). They’d be displayed as question marks or ’.
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’, ”);
or you can just comment the lines out completely by prefixing each line with “//”:
//define(’DB_CHARSET’, ‘utf8′);
//define(’DB_COLLATE’, ”);
Problem solved!


Thanks. This really helped. I was getting these  characters after the upgrade.
Chetan
5 Nov 07 at 8:50 am
Didn’t work with me!
still have (????)
ShaRBiL
14 Nov 07 at 12:11 pm
Thanks this worked perfectly!
ProjectJohn
22 Dec 07 at 6:04 am
Worked for me as well, thank you so much!
Walter
6 Mar 08 at 8:02 pm
thanks, that fixed it for me!
Robert
27 Apr 08 at 5:34 am
Thanks, man! I had the *exact* thing happen last time I upgraded, but I tend not to store facts like that and had forgotten what I did to resolve it; I guess my cache is too small… Glad that someone was thinking to blog this!
Michael
23 Oct 08 at 5:33 am
[...] with the quest for a solution to a nagging software problem. After finding the answer on a blog – thank you, Trevin Chow! – I naturally had to surf the site a bit to see what was there (since Trevin had some similar [...]
Stoos.net » Blog Archive » 100 Pushups
29 Oct 08 at 9:23 am
Thanks! This worked like a charm. I wonder what happened to the couple of posts I edited to remove the strange characters? Oh well.
kai
9 Dec 08 at 7:53 am
Thanks!!!
Paul
18 Jan 09 at 4:01 pm
You saved me! My hero.
Shelly Tucker
20 Aug 09 at 9:03 am
Hotel in Tbilisi, Georgia
Hotel Mkudro is situated in one of the most ecologically pure area of Tbilisi. Comfortable and quiet atmosphere is the guarantee of perfect rest and stainless service.
Building of the hotel is surrounded with the evergreen garden; it is fenced and safeguarded all day and night. The hotel has Lux and standards rooms. Hotel has a safe car-parking
vaso
26 Apr 10 at 10:20 am