Re: JDBC driver, client_encoding and a SQL_ASCII database in production

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Emmanuel Guiton <emmanuel(dot)guiton(at)intrinsec(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date: 2010-03-10 21:49:45
Message-ID: 4B9813F9.3060801@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-03-10 21:52:19 Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Previous Message Mark Kirkwood 2010-03-10 20:32:36 Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed