From: Ronald Gallagher <RGallagher@psych.org>
To: pgsql-jdbc@postgresql.org
Subject: ASCII to UNICODE conversion problems
Date: Wed, 11 May 2005 15:54:39 -0400
Message-ID: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org> (raw)
Hi all,
I am using the pg74.215.jdbc3.jar JDBC driver to connect to a PostgreSQL
7.4 database. I am getting the common error:
Invalid character data was found. This is most likely caused by stored
data containing characters that are invalid for the character set the
database was created in. The most common example of this is storing 8bit
data in a SQL_ASCII database.
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.
Can someone please tell me how to convert an ASCII DB into a UNICODE DB
so hopefully the JDBC driver will actually work? I also read about a
patch for the JDBC driver. Where can I get this patch and does it work?
Thanks in advance for all your help,
Ron
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: RGallagher@psych.org
Subject: Re: ASCII to UNICODE conversion problems
In-Reply-To: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org>
References: <FCAD0432FD2FC449BEA84B820D36398501099845@ARES.psych.org>
* 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