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

From: Kris Jurka <books(at)ejurka(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Emmanuel Guiton <emmanuel(dot)guiton(at)intrinsec(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date: 2010-03-10 21:52:19
Message-ID: alpine.BSO.2.00.1003101650550.4329@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Thu, 11 Mar 2010, Oliver Jowett wrote:

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

The JDBC driver does support running with a non-UTF-8 encoding, but only
for server versions prior to 7.3. There's no reason it couldn't work for
later versions, so the easiest thing to do is to tweak the v2 protocol
setup code to work for your server version and then use that.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lew 2010-03-11 01:45:08 Re: org.postgresql.util.PSQLException: Protocol error. Session setup failed
Previous Message Oliver Jowett 2010-03-10 21:49:45 Re: JDBC driver, client_encoding and a SQL_ASCII database in production