Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 26682B5DC32 for ; Thu, 25 Aug 2011 14:06:33 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 46615-06 for ; Thu, 25 Aug 2011 17:06:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.softperience.eu (static-ip-217-118-26-141.inaddr.ip-pool.com [217.118.26.141]) by mail.postgresql.org (Postfix) with ESMTP id 4EBFEB5DC0C for ; Thu, 25 Aug 2011 14:06:31 -0300 (ADT) Received: from localhost.localnet (ccf246.neoplus.adsl.tpnet.pl [83.30.129.246]) by mail.softperience.eu (Postfix) with ESMTPA id 385D0C000DB; Thu, 25 Aug 2011 19:06:25 +0200 (CEST) To: pgsql-jdbc@postgresql.org Subject: Re: SQL_ASCII charset conversion Cc: Dieter From: =?utf-8?q?Rados=C5=82aw_Smogura?= Date: Thu, 25 Aug 2011 19:06:37 +0200 MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201108251906.37696.rsmogura@softperience.eu> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/77 X-Sequence-Number: 22109 Hi, I bearly looked at driver code, and I see setting charSet is possible only if databse is 7.3 or earlier. I think better solution will bo for you to dump databse to sql, and eventually fix encoding with iconv. You may try to set system encoding /in Your session/ to ASCII or better to ISO-8859-1 and take dump, then create database with proper encoding (or change database creation to reflex desired encodind in dumped file). If you will restore database from such file, and such session everything should work. I hope. Regards, Dieter Thursday 25 of August 2011 12:41:44 > Hi > > we have a Postgres 8.4 database with SQL_ASCII encoding. > > Unfortunately, there are non ascii characters stored in this database. The > encoding used to store the non-ascii characters was ISO-8859-1 (LATIN1). I > know thats not the way to go, but thats the situation. > > > With the old Postgres JDBC Driver (older than 7.2), the charSet Property > could be as follows: > charSet=ISO-8859-1 > With this setting, the characers in the database are correctly interpreted. > > Now, with the new 8.4 postgres JDBC driver, this charSet setting is not > supported anymore. > How can I set the character encoding to ISO-8859-1 in the 8.4 Postgres > Driver? > > Thank you very much. > > Regards > Dieter > > -- > View this message in context: > http://postgresql.1045698.n5.nabble.com/SQL-ASCII-charset-conversion-tp473 > 3958p4733958.html Sent from the PostgreSQL - jdbc mailing list archive at > Nabble.com.