W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 2000

Re: Facing problem with Chinese characters

From: Christopher William Turner <cwturner@cycom.co.uk>
Date: Tue, 10 Oct 2000 10:15:55 +0100
Message-ID: <39E2DE4B.9261092B@cycom.co.uk>
To: Jayabalan Kandasamy <jkandasamy@rightworks.com>
CC: "'www-jigsaw@w3.org'" <www-jigsaw@w3.org>
There are probably character set conversions happening.
JDBC is not strong at allowing you to set the correct character sets for
String datatype.

You could try converting all strings to UTF8 before
reading or writing them from database. They may
still look garbage when viewed via dumb oracle tools
but they will not lose data when your servlet reads them 
back. 

Look at documentation for 
String.String(byte [], String encoding)
and
String.getBytes(String encoding)

there are lots of encodings to choose from but UTF8 is
a lossless one for use with 8bit char based databases.
Received on Tuesday, 10 October 2000 05:20:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:34 GMT