WordPress.org

Ready to get started?Download WordPress

Forums

Encoding for Chinese characters (15 posts)

  1. galovesongs
    Member
    Posted 7 years ago #

    Hi all,

    I recently upgraded my WordPress software from 2.1 to 2.2. From time to time, I'll type Chinese or Japanese characters in my blog entries. When I was using 2.1, there wasn't any problem in reading the characters that I'd typed.

    However, after upgrading to 2.2, all my chinese characters became uncomprehensible symbols. New entries with chinese characters would mean that the chinese characters are all converted into question marks. I'd checked the encoding and found it to be UTF-8 so it shouldn't be a problem.

    Please advice on how I can convert the symbols back into words and how I can continue blogging in other languages without encountering such problems. Thank you.

  2. moshu
    Member
    Posted 7 years ago #

    I bet you did an automatic upgrade via fantastico...
    Even when doing it in that way - it is worth to read the upgrade instructions!
    http://codex.wordpress.org/Upgrading_WordPress#Special_note_for_Fantastico_Upgrades

  3. galovesongs
    Member
    Posted 7 years ago #

    Sorry man.

    I did my own upgrade. Followed the five steps instructions.

  4. moshu
    Member
    Posted 7 years ago #

    There is no 5 steps for upgrade. That's for install.
    You should still check your wp-config file... after reading the link I posted.

  5. galovesongs
    Member
    Posted 7 years ago #

    ok thanks!

  6. daikuma
    Member
    Posted 6 years ago #

    Hi Moshu, I too want to type Chinese and Roman characters into my WordPress blog, but my blog is hosted by Blue Host so that I can have my own domain. I also set it up with Fantastico, but I DID install version 2.2.2 and STILL cannot type Japanese kana and Chinese characters. I read the documentation you listed to but there they warn against altering the files in question. Is there an easy, automated way to do this? I realize Blue Host is not WordPress, but WordPress proudly recommends Blue Host and does not show any caveats against its use.
    NOTE: Originally set up on WordPress, Chinese characters did display, but on Blue Host they don't and they sent me back to WordPress. PLEASE HELP!!

  7. moshu
    Member
    Posted 6 years ago #

    In that version the lines I suggested to be deleted in the config file are also there... Did you do that?

  8. galovesongs
    Member
    Posted 6 years ago #

    I think the section from the link you provided has been deleted?

  9. pjacobs
    Member
    Posted 6 years ago #

    The solution is the comment out (or delete) the following two lines from wp-config.php

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

    It worked for me! Japanese chars now display perfectly.

  10. moshu
    Member
    Posted 6 years ago #

    galovesongs,
    it has been moved:
    http://codex.wordpress.org/Upgrading_WordPress_Extended#Special_note_for_Fantastico_Upgrades

    But, actually, pjacobs already posted the solution.

  11. pjacobs
    Member
    Posted 6 years ago #

  12. elspencer
    Member
    Posted 6 years ago #

    I just have to say thank you so much for this tip. I spent all night reading about .mo .po files and got my dashboard in Mandarin, but what I really wanted was the inputted characters to display correctly on my site.

    By deleting those 2 lines of code in the wp-config.php file, it saved me so much time.

    Thanks again for your help!

  13. bonitapang
    Member
    Posted 6 years ago #

    Hi,

    i deleted the 2 lines from wp-config.php, instead of the chinese characters showing up, my posts now have this weird black diamond shape with a question mark inside at every "space". see http://www.chanlegacy.com

    The chinese characters are still not showing. pls see the following link.
    http://www.chanlegacy.com/2006/10/14/placentafor-what/

    Been frustrated with this for a long time, appreciate someone please help? tks!

  14. beenalee
    Member
    Posted 6 years ago #

    @bonitapang

    You would have to retype everything. It worked on mine but I had to retype it. Or maybe it doesn't work for Chinese characters cause I only have Korean and Japanese characters on mine. But I doubt it.

  15. jacknjeannie
    Member
    Posted 6 years ago #

    Yep, deleting those 2 lines worked. But this retyping business is terrible, especially if you didn't type those yourself...

Topic Closed

This topic has been closed to new replies.

About this Topic