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 27A163A412E for ; Wed, 5 Jan 2005 04:03:52 +0000 (GMT) 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 43277-06 for ; Wed, 5 Jan 2005 04:03:41 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 484FD3A40F3 for ; Wed, 5 Jan 2005 04:03:39 +0000 (GMT) Received: from flood.opencloud.co.nz ([192.168.0.31]) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1Cm2OQ-0001yi-00; Wed, 05 Jan 2005 17:03:31 +1300 Message-ID: <41DB6710.6070700@opencloud.com> Date: Wed, 05 Jan 2005 17:03:28 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Gagnon Cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC and Latin1 Database problem References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/13 X-Sequence-Number: 11893 David Gagnon wrote: >> The 'encoding' parameter is only used for connections to pre-7.3 >> servers; in other cases it is ignored. > > > Really?! I must say that this REALLY solved my encoding problem. And I'm > using 7.4 ?! Without this flag I always get the error describe before. Hmm -- perhaps the stable driver does things differently. I don't have that code readily to hand. Can you try the development driver (without any encoding parameter) and see if you get different behaviour? > Do I have to specify something to inform the JDBC driver that it connect > to a Latin1 database? You shouldn't need to. > This statement is read from an sql file. So no prepare statement here > is the code that cause the problem: > hasResults = statement.execute(command.toString()); Can you dump out the individual (unicode) character values of 'command' just to check you're really executing the query you think you are? -O