Page 1 of 1

Chinese language on a web site

Posted: Fri Mar 03, 2006 3:10 pm
by jfbakker
Dear members,

For a client of mine I need to introduce Chinese language support in a web portal. This web portal, written in PHP + MySQL is already available in a number of European languages (English, Spanish, German...). However my client needs this portal to be available in Chinese as well. Content will be translated using a a simple HTML form. The translated versions of blocks of text are stored into the MySQL database.

I already know that Chinese people either use Pinyin (romanized Chinese), or Wubi to write in their language using a normal European alphabet keyboard. I also know that Unicode (UTF8) is widely used to properly display Chinese characters on web pages, emails, etc.

So the procedure is Pinyin - Unicode - Chinese characters. The missing link for me still is the step between Pinyin and Unicode.

:( ¿Are there any PHP scripts available which transform Pinyin into correct Unicode codes for Chinese characters?

ANy help will be very much appreciated.

Best regards

Posted: Fri Mar 03, 2006 3:14 pm
by ron_j_m
Not sure if this is exactly what you are looking for, but saw this at phpclasses.org

"This class is meant to convert Chinese between different encoding types.

Currently, the following encoding types are supported: GB-2312, Big5, Unicode (UTF-8)."

http://www.phpclasses.org/browse/package/1406.html

Hope it helps.
Ron

Posted: Fri Mar 03, 2006 3:17 pm
by newmember
may mb_convert_encoding() can help you?