From: Kris Jurka <books@ejurka.com>
To: Ronald Gallagher <RGallagher@psych.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ASCII to UNICODE conversion problems
Date: Wed, 11 May 2005 19:02:56 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0505111900070.27750@leary.csoft.net> (raw)
In-Reply-To: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org>
References: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org>
On Wed, 11 May 2005, Ronald Gallagher wrote:
> I have read a lot online about how I need to convert my ASCII database
> into UNICODE but I haven't been able to successfully do that. I have
> dumped the DB and then added SET CLIENT_ENCODING TO 'UNICODE'; to the
> top of the dump file and then tried to restore it to a UNICODE encoded
> database. When I tried this only some of the tables (I assume the ones
> without special characters) got imported, but many tables had zero rows.
Basically the JDBC driver was detecting the fact that your data is not
unicode. You've put this into a file and labeled it unicode (via SET
client_encoding), so now the server is complaining that your data is not
unicode.
You need to determine what encoding your data is actually in and convert
it to unicode with something like iconv.
> I also read about a patch for the JDBC driver. Where can I get this
> patch and does it work?
Any patch dealing with encodings is going to require you to know what
encoding your data really is, so I don't specifically know what you are
referring to, I do know it is not going to magically solve your problems.
Kris Jurka
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: books@ejurka.com, RGallagher@psych.org
Subject: Re: ASCII to UNICODE conversion problems
In-Reply-To: <Pine.BSO.4.56.0505111900070.27750@leary.csoft.net>
References: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org> <Pine.BSO.4.56.0505111900070.27750@leary.csoft.net>
* 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