From: mbch67@yahoo.com
To: pgsql-jdbc@postgresql.org
Subject: Re: 8.0.0beta4: "copy" and "client_encoding"
Date: 5 Nov 2004 00:19:32 -0800
Message-ID: <fe065ce.0411050019.464d6929@posting.google.com> (raw)
References: <fe065ce.0411030803.4616e8c4@posting.google.com>
<41893BC8.6000201@opencloud.com>
<fe065ce.0411032308.5b7a24b3@posting.google.com>
<418A01B2.70104@opencloud.com>
> I suppose that in the absence of backend support for this, we could add
> some URL parameter that allows client_encoding to be changed, with
> suitably dangerous warnings around using it. Then you can temporarily
> flip client_encoding to LATIN1 for the duration of the COPY, and revert
> it to UNICODE afterwards.
>
To me a temporarly fix is not really the solution. Shouldn't there be
done some more investigations first, e.g.
1. I set LATIN1 as the database (postgresql.conf) default client
encoding. Why does COPY, executed via JDBC not use the right encoding?
=> To me it seems to be a backend problem. Should this be address in
another posting list?
2. Was the decision to disable the "SET CLIENT_ENCODING" command
really a good idea? What about if I am running a server using UNICODE
to store text, my default client encoding is LATIN1 and I want to
import a Korean encoded text file using COPY via JDBC? There is no way
to tell COPY what encoding the input file based on.
In order to be compliant with PSQL I suggest to reactivate the
disabled "SET CLIENT ENCODING" for JDBC.
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: mbch67@yahoo.com
Subject: Re: 8.0.0beta4: "copy" and "client_encoding"
In-Reply-To: <fe065ce.0411050019.464d6929@posting.google.com>
References: <fe065ce.0411030803.4616e8c4@posting.google.com> <41893BC8.6000201@opencloud.com> <fe065ce.0411032308.5b7a24b3@posting.google.com> <418A01B2.70104@opencloud.com> <fe065ce.0411050019.464d6929@posting.google.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