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 

Look at documentation for 
String.String(byte [], String encoding)
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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:36 UTC