WordPress.org

Ready to get started?Download WordPress

Forums

Chinese characters not showing up correctly (14 posts)

  1. endtag
    Member
    Posted 6 years ago #

    I was trying to set up a Chinese blog using WordPress. I installed WP 2.2 (English version) on my host and then uploaded the language file (.mo file) and also changed wp-config.php to let it use Chinese. While the backend admin interface has successfully changed to Chinese, every time I try to add a new post using Chinese, the resulted characters are garbage.

    Can somebody help me on this issue?

    Thanks!

    Matt

  2. injate
    Member
    Posted 6 years ago #

    Are the fonts installed in windows (or whatever OS you're running)?

    or do they display on other web sites as plain text (non images)?

    http://seba.studentenweb.org/thesis/howto-winxp.php (You need your windows XP cd to do this)

    If you're sure you're not just missing the fonts on your computer then you might have made a mistake setting the blog up for Chinese.

  3. endtag
    Member
    Posted 6 years ago #

    I have Chinese fonts instaled on my Windows XP. It's definately not an issue with Chinese fonts.

    Please note that Chinese characters showing up fine on the backend, so I guess there might be some problems in the storing Chinese chars in the database.

  4. endtag
    Member
    Posted 6 years ago #

    Since nobody has replied further, I did some experiments myself. I uninstalled the Chinese version and re-installed an English version (2.2.2) using my web host's Fantastico. After that, I didn't bother adding Chinese, bust directly posted an article in Chinese characters. As I understand, since WP uses UTF8 encoding, These Chinese characters should show up correctly even if posted under an English interface. However, that was NOT the case: the Chinese characters showed up as garbage (like ?????) again.

    Below is some info with my web host:

    Host: http://ace-host.net/
    MySQL version 4.1.22-standard
    PHP version 5.0.4

    Can somebody help?

    Thanks!!!!

  5. pinkbee
    Member
    Posted 6 years ago #

    I have this problem with Chinese characters too. Everytime when my database is moved to another server, the characters turned "???".

  6. xiaozhu
    Member
    Posted 6 years ago #

    I have the same problem. I tried the fix suggested on this thread but it still display as "????".

    My main difference compared to you guys is this is my first WP, my blog was previously on blogger. Is there something I should download in the first place to show chinese characters ?

    Any help appreciated ! I've done plenty of research but nothing works so far.

  7. xiaozhu
    Member
    Posted 6 years ago #

    I'm still researching on this issue... any help would really be appreciated !

    Strange thing is, the characters show up correctly in the admin. interface, but I soon as I publish, they turn into ????. I check with different browser, and it doesn't change, so I assume it's not a browser encoding issue.

    I used the Chinese Unicode fonts, and MySQL database is using UTF8 encoding.

  8. Darran
    Member
    Posted 6 years ago #

    I did have a similar problem when I upgraded to WP 2.3, the problem was the sql db collation, it was using a swedish encoding instead of utf8. Maybe you can double check your db whether it is having the same problem as me.

  9. xiaozhu
    Member
    Posted 6 years ago #

    Thanks Darran, but I checked and I do use the UTF8.

  10. moshu
    Member
    Posted 6 years ago #

    Not encoding - collation.
    In the newer version of WP the config file has two new lines:

    define('DB_CHARSET', 'utf8');
    define('DB_COLLATE', '');

    If it is an upgrade, delete those two lines!

  11. xiaozhu
    Member
    Posted 6 years ago #

    This is my problem - I'm new on WordPress, this is not an upgrade issue for me. I did try deleting the two lines etc. but it doesn't solve the problem for me.

  12. mang0
    Member
    Posted 6 years ago #

    Thanks moshu, I solved it :)

  13. thenhbushman
    Member
    Posted 6 years ago #

    mango, by all means, please, do tell! how did you solve this problem?

    i have Chinese characters in URLs imported from blogger.com that i can view in admin but none of the Chinese itself shows up in any event. it's all just "????"

  14. hoatce3139
    Member
    Posted 6 years ago #

    well, there is no problem with the Chinese characters in my WP blog.
    and xiaozhu and endtag are chinese people? me too!
    it is intereting if you put on the links of your blogs for me here

Topic Closed

This topic has been closed to new replies.

About this Topic