Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id CA92B634858 for ; Wed, 10 Mar 2010 17:52:31 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10395-01 for ; Wed, 10 Mar 2010 21:52:20 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id F3B2863329A for ; Wed, 10 Mar 2010 17:52:20 -0400 (AST) Received: by leary.csoft.net (Postfix, from userid 1112) id 71854A3D6; Wed, 10 Mar 2010 16:52:19 -0500 (EST) Date: Wed, 10 Mar 2010 16:52:19 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett cc: Emmanuel Guiton , pgsql-jdbc@postgresql.org Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production In-Reply-To: <4B9813F9.3060801@opencloud.com> Message-ID: References: <4B977FFF.9030204@intrinsec.com> <4B978DBE.8090506@opencloud.com> <4B979F69.5090707@intrinsec.com> <4B9813F9.3060801@opencloud.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/42 X-Sequence-Number: 20382 On Thu, 11 Mar 2010, Oliver Jowett wrote: > You may have to run with a modified driver that you have patched to > understand encodings other than UTF-8. > The JDBC driver does support running with a non-UTF-8 encoding, but only for server versions prior to 7.3. There's no reason it couldn't work for later versions, so the easiest thing to do is to tweak the v2 protocol setup code to work for your server version and then use that. Kris Jurka