JDBC rs.getString() encoding problem

From: "brucecphsu" <brucecphsu(at)ms(dot)acer121(dot)com>
To: <pgsql-interfaces(at)postgresql(dot)org>
Subject: JDBC rs.getString() encoding problem
Date: 2000-07-19 08:24:33
Message-ID: 000001bff15a$c5736d10$7b48a8c0@acer.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Hello,

I write a Java Servlet program which use rs.getString()
to retrive data (UTF-8 encoded data). The char I got is
?(65533). But if I use a Java AP to retrive the data,
the return char is OK.

I guess there are some environment variable which
will affect the String return by rs.getString(). Somebody
can give me a hint? Thanks in advance.

Bruce

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Þórhallur Hálfdánarson 2000-07-19 14:04:32 RE: ResultSetMetaData problems (getColumnType() and -TypeName)
Previous Message Carsten Zerbst 2000-07-19 07:30:34 TCL - API documentation