Character conundrum
From: Dave Bender (dave_at_benders-of-edina.com)
Date: 10/28/03
- Next message: Hrvoje Somun: "Re: AS400 and jbuilder"
- Previous message: arsum: "Re: JDBC Connect to Database - please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 28 Oct 2003 08:30:42 -0600
Does anyone know why the getCharacterStream() method returns a Reader rather
than a CharacterStream, as its name suggests? All the other
ResultSet.getxxxStream() methods return Streams. Why doesn't this one?
I ask because we're having trouble with character encodings, where the
database is on a Windows machine, the application is on a Solaris machine,
and some of the characters from a text field are getting munged. The cause
of the problem seems to have something to do with character encoding. An
InputStream would give us the getEncoding() method, and even set the
encoding in its constructor. But a Reader doesn't seem to provide that. Is
there a way to coax the preferred character encoding to and from a Reader?
Dave
- Next message: Hrvoje Somun: "Re: AS400 and jbuilder"
- Previous message: arsum: "Re: JDBC Connect to Database - please help!"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|