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 116E555443 for ; Wed, 11 May 2005 21:03:39 -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 23791-02 for ; Thu, 12 May 2005 00:03:34 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 8AF5D56380 for ; Wed, 11 May 2005 21:02:54 -0300 (ADT) Received: (qmail 15000 invoked by uid 1112); 12 May 2005 00:02:56 -0000 Date: Wed, 11 May 2005 19:02:56 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Ronald Gallagher Cc: pgsql-jdbc@postgresql.org Subject: Re: ASCII to UNICODE conversion problems In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.011 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/56 X-Sequence-Number: 12887 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