From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Is this error correct/possible?
Date: Tue, 23 Aug 2005 16:50:54 +0200
Message-ID: <1124808654.27046.52.camel@panoramix.askesis.nl> (raw)
In-Reply-To: <Pine.BSO.4.62.0508230919260.32740@leary.csoft.net>
References: <1124790915.27046.25.camel@panoramix.askesis.nl>
<Pine.BSO.4.62.0508230919260.32740@leary.csoft.net>
On Tue, 2005-08-23 at 09:34 -0500, Kris Jurka wrote:
> It is allowed to be stored in the database because SQL_ASCII is not a real
> encoding. SQL_ASCII allows you to store anything you want and doesn't
> require you to tell the server what character set it actually is. The
> problem is on the return end, the JDBC driver asks the server to always
> return data in UTF-8 by setting the client_encoding appropriately. The
> server has no idea what the original encoding of the data was, so it has
> no means of converting it to unicode. It may happen to look like
> u-double-dot in your particular pgadmin3 client's encoding, but if that
> client's encoding was different it would show up as a different character.
> This is why the JDBC driver bails out instead of just picking a
> random character.
OK.
> > 2. If so, is this a JDBC bug?
>
> No. The JDBC documentation clearly states not to choose a SQL_ASCII
> database for your data.
>
> http://jdbc.postgresql.org/documentation/80/your-database.htmlWhat if you don't have a choise? E.g. the database is already in SQL_ASCII? Can I convert the database from SQL_ASCII to UNCODE?
TIA
Joost
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: J.Kraaijeveld@Askesis.nl, books@ejurka.com
Subject: Re: Is this error correct/possible?
In-Reply-To: <1124808654.27046.52.camel@panoramix.askesis.nl>
References: <1124790915.27046.25.camel@panoramix.askesis.nl> <Pine.BSO.4.62.0508230919260.32740@leary.csoft.net> <1124808654.27046.52.camel@panoramix.askesis.nl>
* 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