X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A376A5322D for ; Wed, 11 May 2005 16:56:55 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 77188-05 for ; Wed, 11 May 2005 19:56:51 +0000 (GMT) Received: from cerberus.psych.org (mail5.psych.org [65.120.86.42]) by svr1.postgresql.org (Postfix) with ESMTP id 1B5E85322E for ; Wed, 11 May 2005 16:56:46 -0300 (ADT) Received: from ARES.psych.org ([172.30.30.161]) by cerberus.psych.org with Microsoft SMTPSVC(6.0.3790.0); Wed, 11 May 2005 15:57:48 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C55663.B4D5AC8C" Subject: ASCII to UNICODE conversion problems Date: Wed, 11 May 2005 15:54:39 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ASCII to UNICODE conversion problems Thread-Index: AcVWY0RVFpiT6Wc3QN+P+3gmao9B0A== From: "Ronald Gallagher" To: X-OriginalArrivalTime: 11 May 2005 19:57:48.0592 (UTC) FILETIME=[B4DADB00:01C55663] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200505/55 X-Sequence-Number: 12886 This is a multi-part message in MIME format. ------_=_NextPart_001_01C55663.B4D5AC8C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, =20 I am using the pg74.215.jdbc3.jar JDBC driver to connect to a PostgreSQL 7.4 database. I am getting the common error: =20 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. =20 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. =20 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? =20 Thanks in advance for all your help, Ron =20 =20 ------_=_NextPart_001_01C55663.B4D5AC8C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

 

 

------_=_NextPart_001_01C55663.B4D5AC8C--