Support » Fixing WordPress » Can’t display chinese

  • I’ve read posts on similar problems but am having difficulty finding a clear answer. My blog is English with occasional Chinese but right now I get ??? instead of Chinese characters. This is the paste from my wp-config.php

    http://wordpress.pastebin.ca/665742

    After reading several posts and one how-to I’m not sure whether I’m supposed to keep UTF-8 as my character set, change it to GB 2312 (Simplified Chinese) or delete certain lines from the wp-config, namely (‘DB_CHARSET’, ‘utf8’);
    (‘DB_COLLATE’, ”);

    My understanding is that deleting those 2 lines is for upgrades whereas mine is a new installation – I’m a total newbie.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I deleted these two lines:

    (‘DB_CHARSET’, ‘utf8’);
    (‘DB_COLLATE’, ”);

    in config.php and now my mixed chinese and english characters can show without problem. 🙂

    My site is at http://shashinki.com/blog/

    you cannot enter GB %XX%YY into UTF-8 database %XX%YY%ZZ…
    switch your input method to UTF-8.

    on the other hand, if you need to use GB (such as in Windows 95 and 98), write a plugin to convert GB characters to UTF-8 just before you save your post.

    here’s a great place to start for writing the plugin.
    http://us.php.net/iconv

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t display chinese’ is closed to new replies.