website support english and chinese

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • suresh_nsnguys
    New Member
    • Aug 2006
    • 32

    #1

    website support english and chinese

    Hi,

    I am developing one application using PHP and MySQL.Right now my application supports English language.i like to integrate chinese language in my application.i like to implement similar to this website.



    'Language' combo box contain 'English' and 'chinese',when user select 'English'.i like to display the page details in english and when he select 'chinese' i like to display page details in 'chinese'

    i set the <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"> .but chinese font is not displaying.i think we need to do some PHP programatic unicode conversion.I dont know how to proceed.

    I am looking for some help from you guys.

    A.suresh
    Last edited by Atli; May 13 '07, 03:40 PM. Reason: Merged with a double post.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    To be able to use special character, you need to select the right character encoding.

    That is, if you take a look at that page you just gave us, in the source of the
    Chinees version you will find this line:

    <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />

    This basicly tells the browsers how to read the characters. So if you were to change this into the popular Western European ISO encoding the whole page would turn into question signs or just random nonsence.

    I dont know Chineese so I cant really advice on the charsets you would have to use with that, but I do know that special Icelandic characters I frequently use require the UTF-8 encoding, and I belive that is a safe bet if you dont know which one you need.

    Comment

    Working...