From: | dmp <danap(at)ttc-cmc(dot)net> |
---|---|
To: | dbadmin(at)nqadmin(dot)com, PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |
Date: | 2015-08-08 05:08:41 |
Message-ID: | 55C58ED9.7070105@ttc-cmc.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Prasanth Reddy wrote:
> From log file:
> ERROR: invalid byte sequence for encoding "UTF8": 0x92
> STATEMENT: SELECT * FROM client_data WHERE status_code = 0 ORDER BY
> client_name, description
>
> Code that causes it:
> String sql = "SELECT * FROM client_data WHERE status_code = 0 ORDER BY
> client_name, description";
> ResultSet rs = connection.createStatement().executeQuery(sql);
> *
> *How do I set the connection property?
String connectionString = "jdbc:postgresql://" + host + "/" + database +
"?user=" + username
+ "&password=" + password + "&loglevel=" + logLevel;
Connection dbConnection = DriverManager.getConnection(connectionString);
Sample Test
http://dandymadeproductions.com/temp/PostgreSQL_JDBC_Test.java
danap.
From | Date | Subject | |
---|---|---|---|
Next Message | Prasanth Reddy | 2015-08-08 17:49:20 | Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |
Previous Message | Prasanth Reddy | 2015-08-08 04:25:10 | Re: Postgresql 9.4.4 - ERROR: invalid byte sequence for encoding "UTF8": 0x92 |