Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: java don't recognize chars of Oracle data..
On Fri, 28 Jun 2002, duniapac_at_tin.it wrote:
> Hello I written a java servlet. It extract data from an Oracle DB and
> return the data to a client via http. But the servlet recognizes
> erroneus characters (example: ž is recognized as A°).
Java works in double-byte. I'm not sure what character '\200' is, but it is probably some control character that got in your data and java is interpreting it the way it reads it.
If you use ResultSet.getString(); you should be getting a string in the Java sense of the word, ie double byte. Try the method, getAsciiStream(). Does this behave any differently.
-- Galen deForest Boyer Sweet dreams and flying machines in pieces on the ground.Received on Sat Jun 29 2002 - 00:24:09 CDT