WordPress.org

Ready to get started?Download WordPress

Forums

Unicode chinese turn into symbols after upgrade to wp2.2 (43 posts)

  1. moshu
    Member
    Posted 7 years ago #

    Write less and read more (carefully):
    Quote from thomasw98 -

    3. I then edited the standard wp-config.php file as the moderator mentioned above. I removed the two lines:

    define('DB_CHARSET', 'utf8');

    define('DB_COLLATE', '');

    remove = delete

  2. sfong15
    Member
    Posted 7 years ago #

    Thanks Moshu, I did read that and have solved the problem at one of my sites by removing 2 lines from config.php. I also read in this thread that there could be other issues caused by removing that 2 lines, who knows, so I thought changing table and field collation could be a permanent solution for non-English blogs.

    I now found a solution by goggling it see this post here. I have just tried this at localhost and it worked beautifully.

  3. bonitapang
    Member
    Posted 7 years ago #

    Hi,

    i also tried Thomas's method, all checked and done, but my post (which was formerly typed in both english and chinese in blogger and recently imported into wp)chinese character is still showing "???".

    Any idea?

    Post in question
    http://www.chanlegacy.com/2006/10/14/placentafor-what/

  4. MichaelChan
    Member
    Posted 7 years ago #

    I tried the method that Thomas suggested...and got this:

    Fatal error: Call to undefined function: wp() in /home/tental2/public_html/wp-blog-header.php on line 18

    Sigh. Anyone has a suggestion?

  5. MichaelChan
    Member
    Posted 7 years ago #

    Found out what the problem was - apparently, Notepad my editor mangled everything up. I used Wordpad, made the carriage returns manually and solved that problem.

    Only to get a new one.

    Warning: Invalid argument supplied for foreach() in /home/tental2/public_html/wp-includes/classes.php on line 88.

    Sigh...

  6. MichaelChan
    Member
    Posted 7 years ago #

  7. MichaelChan
    Member
    Posted 7 years ago #

    I'm curious - does anyone know WHY the two lines created the original trouble? Can you post or point to a link? Thanks.

  8. hi2005
    Member
    Posted 6 years ago #

    It does work. Thanks to this great finding. Richard

  9. arsenalxat
    Member
    Posted 6 years ago #

    Just wanna say "Thank you" to thomasw98.
    Your solution worked perfectly for me.
    实在太感谢了!

  10. preetamrai
    Member
    Posted 6 years ago #

    Thanks thomasw98, the steps you mentioned work for Japanese text too.

  11. redsil
    Member
    Posted 6 years ago #

    I can understand the need to change the encoding for the database; however, for my blog I want to post translations of some of my English-language articles in Chinese, so changing the encoding is not an option, as it will mess up the English posts. Any ideas? I would I be better off just setting up an alternative Chinese-language version of my blog, with its own WP installation?

  12. stevepurkiss
    Member
    Posted 6 years ago #

    Wondering if anyone's found a solution - I have a blog in English but would like to display two pages, one in Chinese and one in Japanese - is it possible? I have the translations.

    I'm using 2.3.3

  13. yenjai
    Member
    Posted 6 years ago #

    I am using 2.5.1

    After modifying the wp-config.php file remoiving those two lines, I have no problem writing a new chinese post.

    But ALL my chinese post imported from a previous backup will not display properly. All appear as question marks

    Any way to solve the problem?

Topic Closed

This topic has been closed to new replies.

About this Topic