Fix Wrong Encoding After Upgrade WordPress 2.2

Filed in: WordPress — May 31st, 2007

WordPressIf your non-English WordPress blog has wrong characters encoding after upgrade to WordPress 2.2. Don’t worry. It can be solved easily by editing WordPress configuration file.

  1. Open and edit “wp-config.php”
  2. Find: define('DB_CHARSET', 'utf8');
  3. Remove “utf8″, so it becomes: define('DB_CHARSET', '');
  4. Save and upload “wp-config.php”
  5. Done. Your WordPress blog should display characters correctly.

By default, if no character set is defined, WordPerss 2.2 will use utf8_general_ci

[source]

Like this post? Please share:

Follow @liewcf on Twitter; Join Facebook page; Subscribe to free newsletter for updates like this article..

  • http://www.frostandchauhan.com/ Andrew Mycah

    thanks for the tip!
    simple and handy

  • http://www.frostandchauhan.com Andrew Mycah

    thanks for the tip!
    simple and handy

  • http://www.thinktechno.com/ Pranjal

    Will i do anything wrong if the visitor translates the page with say GOOGLE translate.

  • http://www.thinktechno.com Pranjal

    Will i do anything wrong if the visitor translates the page with say GOOGLE translate.

  • LcF

    @Pranjal: It should work because the page will use the default charset “utf8_general_ci” (unicode, Multilingual). The Google Translate *should* read the content.

  • LcF

    @Pranjal: It should work because the page will use the default charset “utf8_general_ci” (unicode, Multilingual). The Google Translate *should* read the content.

  • Pingback: افكار و احلام » WordPress 2.2 and the importance of doing Unicode right, from the start

  • Pingback: Getting Hebrew to work on WordPress 2.2 » wordpressgarage.com

  • Pingback: deb.foocode.net » One Post to Cover Several

  • http://www.thinkartificial.org/ hthth

    Thanks so much for discovering this solution and sharing it! I was staring down the barrel of manually correcting my posts, but thanks to you everything seems fine now.

    -Hrafn

  • http://www.thinkartificial.org hthth

    Thanks so much for discovering this solution and sharing it! I was staring down the barrel of manually correcting my posts, but thanks to you everything seems fine now.

    -Hrafn

  • LcF

    @Hrafn: glad that the simple solution helped you so much :)

  • LcF

    @Hrafn: glad that the simple solution helped you so much :)

  • http://senn.absolutelysugarfree.com/blog/ senn

    That solved the problems. Thanks!

  • http://senn.absolutelysugarfree.com/blog/ senn

    That solved the problems. Thanks!

  • http://www.driftreality.com/ Jiyan

    Thanks for helping me out. I was worried I’d have to go through and manually edit all the f-d up articles!!!

  • http://www.driftreality.com Jiyan

    Thanks for helping me out. I was worried I’d have to go through and manually edit all the f-d up articles!!!

  • http://www.articlegood.com/ article good

    Thanks…
    That solved the problems.

  • http://www.articlegood.com article good

    Thanks…
    That solved the problems.

  • http://www.sudeposuu.com/ su deposu

    Will i do anything wrong if the visitor translates the page with say GOOGLE translate.

  • http://www.sudeposuu.com su deposu

    Will i do anything wrong if the visitor translates the page with say GOOGLE translate.

  • Pingback: Ian’s blog » Blog Archive » Characters not showing up

  • http://www.kerago.com/ Daniel Craig

    Hi, I was looking around for a while searching for internet security solutions and I happened upon this site and your post regarding ng Encoding After Upgrade WordPress 2.2, I will definitely this to my internet security solutions bookmarks!

  • http://www.kerago.com Daniel Craig

    Hi, I was looking around for a while searching for internet security solutions and I happened upon this site and your post regarding ng Encoding After Upgrade WordPress 2.2, I will definitely this to my internet security solutions bookmarks!

  • http://www.halibutt.pl/ Halibutt

    Thanks, mate, you helped me a lot.

  • http://www.halibutt.pl Halibutt

    Thanks, mate, you helped me a lot.

t