Re: JDBC driver, client_encoding and a SQL_ASCII database in production - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date
Msg-id 4B9813F9.3060801@opencloud.com
Whole thread Raw
In response to Re: JDBC driver, client_encoding and a SQL_ASCII database in production  (Emmanuel Guiton <emmanuel.guiton@intrinsec.com>)
Responses Re: JDBC driver, client_encoding and a SQL_ASCII database in production  (Kris Jurka <books@ejurka.com>)
List pgsql-jdbc
Emmanuel Guiton wrote:

> Would there be a way to get the binary content of text field ?
> Maybe that could be the solution, performing the encoding conversion at
> the application level, then.

That's not simple, the conversion from network data to String is done
very early, well before the data gets anywhere near the application level.

You may have to run with a modified driver that you have patched to
understand encodings other than UTF-8.

-O

pgsql-jdbc by date:

Previous
From: Mark Kirkwood
Date:
Subject: Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Next
From: Kris Jurka
Date:
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production