From: Dave Cramer <pg@fastcrypt.com>
To: Ivo Danihelka <ivo.danihelka@itonis.tv>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: UTF8 should be accepted as UNICODE
Date: Fri, 22 Feb 2008 09:21:03 -0500
Message-ID: <E57CB639-3D98-4ECA-862A-11CF87DC003D@fastcrypt.com> (raw)
In-Reply-To: <1203689294.4960.56.camel@localhost>
References: <1203689294.4960.56.camel@localhost>
Ivo,
What it's actually telling you is that you shouldn't attempt to change
it.
It's already set to UNICODE
But it should probably ignore your attempt, since it has no effect.
Dave
On 22-Feb-08, at 9:08 AM, Ivo Danihelka wrote:
> The Postgresql JDBC driver does not accept this statement:
> SET client_encoding = 'UTF8';
>
> It fails with:
> "org.postgresql.util.PSQLException: The server's client_encoding
> parameter was changed to UTF8. The JDBC driver requires
> client_encoding
> to be UNICODE for correct operation."
>
> I consider that to be a bug. The UNICODE is an alias for UTF8.
>
> Starting from 8.2, the pg_dump exports 'UTF8'
> even when --encoding=UNICODE is used.
> See:
> $ pg_dump --version
> pg_dump (PostgreSQL) 8.2.6
> $ pg_dump --encoding=UNICODE template1 | grep client_encoding
> SET client_encoding = 'UTF8';
>
>
> The check for value.equals('UNICODE') is inside
> org/postgresql/core/v3/QueryExecutorImpl.java
>
> Thanks for the driver,
> --
> Ivo Danihelka
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: explain analyze is your friend
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: pg@fastcrypt.com, ivo.danihelka@itonis.tv
Subject: Re: UTF8 should be accepted as UNICODE
In-Reply-To: <E57CB639-3D98-4ECA-862A-11CF87DC003D@fastcrypt.com>
References: <1203689294.4960.56.camel@localhost> <E57CB639-3D98-4ECA-862A-11CF87DC003D@fastcrypt.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