Trevin Chow

Microsoft Group Program Manager and Seattle Photographer

Strange characters after WordPress upgrade

View Comments

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!

Related Posts

  1. Fix for WordPress “Allowed memory size exhausted” fatal error
  2. Experimenting with new WordPress template
  3. Moved from Windows Live Spaces to WordPress
  4. Create free iPhone ringtones from an MP3
  5. Vista upgrade on my Sony Vaio SZ381

Written by Trevin

September 19th, 2007 at 2:55 pm

Posted in Technology

Tagged with , , , ,

View Comments to 'Strange characters after WordPress upgrade'

Subscribe to comments with RSS or TrackBack to 'Strange characters after WordPress upgrade'.

  1. Thanks. This really helped. I was getting these  characters after the upgrade.

    Chetan

    5 Nov 07 at 8:50 am

  2. Didn’t work with me!
    still have (????)

    ShaRBiL

    14 Nov 07 at 12:11 pm

  3. Thanks this worked perfectly!

    ProjectJohn

    22 Dec 07 at 6:04 am

  4. Worked for me as well, thank you so much!

    Walter

    6 Mar 08 at 8:02 pm

  5. thanks, that fixed it for me!

    Robert

    27 Apr 08 at 5:34 am

  6. 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

  7. [...] 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 [...]

  8. 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

  9. Thanks!!!

    Paul

    18 Jan 09 at 4:01 pm

  10. You saved me! My hero.

    Shelly Tucker

    20 Aug 09 at 9:03 am

  11. 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

Leave a Reply

blog comments powered by Disqus
Get Adobe Flash playerPlugin by wpburn.com wordpress themes