Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 3063063329A for ; Wed, 10 Mar 2010 17:50:10 -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 10084-01 for ; Wed, 10 Mar 2010 21:49:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id 2AC49636305 for ; Wed, 10 Mar 2010 17:49:58 -0400 (AST) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NpTmp-0005sD-Fq; Thu, 11 Mar 2010 10:49:51 +1300 Message-ID: <4B9813F9.3060801@opencloud.com> Date: Thu, 11 Mar 2010 10:49:45 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Emmanuel Guiton CC: pgsql-jdbc@postgresql.org Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production References: <4B977FFF.9030204@intrinsec.com> <4B978DBE.8090506@opencloud.com> <4B979F69.5090707@intrinsec.com> In-Reply-To: <4B979F69.5090707@intrinsec.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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/41 X-Sequence-Number: 20381 Emmanuel Guiton wrote: > Would there be a way to get the binary content of text field ? > Maybe that could be the solution, performing the encoding conversion at > the application level, then. That's not simple, the conversion from network data to String is done very early, well before the data gets anywhere near the application level. You may have to run with a modified driver that you have patched to understand encodings other than UTF-8. -O