Re: db2 database returns ebcdic



John Smith wrote:
I am running a PreparedStatement query against a DB2 database on a mainframe and it is returning EBCDIC strings to me. How can I get the query to return ASCII strings?

If

rs.getString(colix)

does not work even though it should then try

new String(rs.getBytes(colix), "Cp1047")

or

new String(rs.getBytes(colix), "Cp037")

Arne
.