By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

website support english and chinese

P: 32

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.

May 9 '07 #1
Share this Question
Share on Google+
1 Reply

Expert 5K+
P: 5,058
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.
May 10 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.