From: Oliver Jowett <oliver@opencloud.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Charset problem on WHERE clause
Date: Tue, 27 Jul 2004 09:09:25 +1200
Message-ID: <41057305.8070700@opencloud.com> (raw)
In-Reply-To: <Pine.BSO.4.56.0407261205440.7379@leary.csoft.net>
References: <a8bb739d04072607204610c2ce@mail.gmail.com>
<Pine.BSO.4.56.0407261205440.7379@leary.csoft.net>
Kris Jurka wrote:
> You should not use a SQL_ASCII database. The JDBC driver requires you
> database to use a proper encoding for your data. The ?charSet url
> parameter was designed to work around this problem for <= 7.2 servers
> which didn't come with multibyte encoding support compiled by default, but
> it is ignored in => 7.3 servers so it is useless here.
I wonder if it's worth supporting the charSet parameter even for >= 7.3:
set client_encoding explicitly to SQL_ASCII (which I believe means "no
translation") and do the translation to Unicode on the JVM side using
whatever charset the user provided. I think most of the encoding details
are now isolated from the rest of the protocol logic, so it wouldn't be
a very invasive change.
My only concern is that it'd encourage people to keep their DBs as
SQL_ASCII .. which is just delaying the problem.
-O
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: oliver@opencloud.com, books@ejurka.com
Subject: Re: Charset problem on WHERE clause
In-Reply-To: <41057305.8070700@opencloud.com>
References: <a8bb739d04072607204610c2ce@mail.gmail.com> <Pine.BSO.4.56.0407261205440.7379@leary.csoft.net> <41057305.8070700@opencloud.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox