From: smota <samuelmota@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Charset problem on WHERE clause
Date: Mon, 26 Jul 2004 18:30:33 -0300
Message-ID: <a8bb739d040726143019540e1b@mail.gmail.com> (raw)
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>
Hi,
Thanks Kris for your fast response .... I've recreated the database
using LATIN1 and everything is working just fine.
> 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.
I really don't see this as a good idea :O ....
With the LATIN1 charset I didn't use Java conversion (with new
String(rs.getBytes(1)....etc. etc.) my code was cleaner and easier,
so, It was a good thing make me use the correctly encoded database.
:)
Thanks
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: samuelmota@gmail.com
Subject: Re: Charset problem on WHERE clause
In-Reply-To: <a8bb739d040726143019540e1b@mail.gmail.com>
References: <a8bb739d04072607204610c2ce@mail.gmail.com> <Pine.BSO.4.56.0407261205440.7379@leary.csoft.net> <41057305.8070700@opencloud.com> <a8bb739d040726143019540e1b@mail.gmail.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