From: Oliver Jowett <oliver@opencloud.com>
To: David Gagnon <dgagnon74@hotmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and Latin1 Database problem
Date: Wed, 05 Jan 2005 17:03:28 +1300
Message-ID: <41DB6710.6070700@opencloud.com> (raw)
In-Reply-To: <BAY17-F378F9C2184A288174BC44CA6920@phx.gbl>
References: <BAY17-F378F9C2184A288174BC44CA6920@phx.gbl>
David Gagnon wrote:
>> The 'encoding' parameter is only used for connections to pre-7.3
>> servers; in other cases it is ignored.
>
>
> Really?! I must say that this REALLY solved my encoding problem. And I'm
> using 7.4 ?! Without this flag I always get the error describe before.
Hmm -- perhaps the stable driver does things differently. I don't have
that code readily to hand.
Can you try the development driver (without any encoding parameter) and
see if you get different behaviour?
> Do I have to specify something to inform the JDBC driver that it connect
> to a Latin1 database?
You shouldn't need to.
> This statement is read from an sql file. So no prepare statement here
> is the code that cause the problem:
> hasResults = statement.execute(command.toString());
Can you dump out the individual (unicode) character values of 'command'
just to check you're really executing the query you think you are?
-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, dgagnon74@hotmail.com
Subject: Re: JDBC and Latin1 Database problem
In-Reply-To: <41DB6710.6070700@opencloud.com>
References: <BAY17-F378F9C2184A288174BC44CA6920@phx.gbl> <41DB6710.6070700@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