storing and displaying chinese characters

Discussion in 'PHP' started by iamyoohoo, May 27, 2007.

  1. #1
    I'm trying to get my mysql database to store and display chinese characters
    example:
    第1步:制作漂亮模板 (i have no idea what this means, so i apologize in advance)

    -- i have my mysql database, table and column character set as utf8 and collation set as utf8_general_ci.

    -- i have my page charset to utf8 as well
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

    but when i try to type this data into a field, it stores it in hex and displays this for the above chinese text.
    %u7B2C1%u6B65%uFF1A%u5236%u4F5C%u6F02%u4EAE%u6A21%u677F

    any ideas what i'm missing here ?

    thank you
     
    iamyoohoo, May 27, 2007 IP
  2. 0n3Liner

    0n3Liner Peon

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    How are you writing it to your MySQL?
     
    0n3Liner, May 27, 2007 IP