Re: Facing problem with Chinese characters

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 UTC