W3C home > Mailing lists > Public > www-international@w3.org > July to September 2003

displaying Chinese and Thai characters

From: Audrey Ng <audrey@nxspace.com>
Date: Wed, 06 Aug 2003 09:46:05 -0400
Message-Id: <4.2.0.58.J.20030806094559.046a2390@localhost>
To: www-international@w3.org


Hi all,

this is my very first project dealing with internationalization and I am 
very confused about all these character sets and encodings. Any help would 
be most welcome.
Ok, I need to display Chinese(traditional and simplified) and Thai on a 
website. I am using Tomcat4.1 and mySQL 4.0.14. How do I store these 
Chinese and Thai characters in mySQL?
Can I store the unicode escape sequence like \u5000\u5001 directly in mySQL?
I have tried that, but when I retrieve the data in my servlet and then 
forward it to a JSP to display the result, the characters are displayed as 
such \u5000\u5001 and not in chinese. I have set the content type in my 
page directive as well as the META content-type to UTF-8 already.
I have tried using Resourbundles and the Chinese characters are correcly 
displayed.
What is the difference between retrieving the unicode escape sequence from 
the properties file and from the database.

Please help!
Audrey
Received on Wednesday, 6 August 2003 11:41:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 2 June 2009 19:17:00 GMT