hebrew and postgre - Mailing list pgsql-jdbc

From Shay
Subject hebrew and postgre
Date
Msg-id 01cf01c1bed6$4d127aa0$8900000a@shaybhome
Whole thread Raw
List pgsql-jdbc
hello,

i am trying to write and read from and to postgre,
i am able to do this through PG Explorer, but when i try this code through
JDBC and Jboss it failes:

java.sql.Statement st = connection.createStatement();
java.sql.ResultSet rs = st.executeQuery("SELECT * FROM users where
name='hebrew letters here'");
while(rs.next()) {
    System.out.print("Column 1 returned ");
    System.out.println(rs.getString("name"));
}
rs.close();
st.close();

for some reason the result set is empty altough the PG Explorer can find it

can you help?

thanks ahead,
    Shay.


pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: SET TRANSACTION ISOLATION LEVEL
Next
From: Rafael Hancke
Date:
Subject: PGSQL-JDBC DRIVER