Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 2AA2D1336971 for ; Thu, 25 Nov 2010 17:52:18 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 15488-09 for ; Thu, 25 Nov 2010 21:52:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id AFA6F133616B for ; Thu, 25 Nov 2010 17:52:10 -0400 (AST) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PLjjc-00081h-GM for pgsql-jdbc@postgresql.org; Thu, 25 Nov 2010 22:52:08 +0100 Received: from ppp-188-174-72-123.dynamic.mnet-online.de ([188.174.72.123]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 22:52:08 +0100 Received: from spam_eater by ppp-188-174-72-123.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Nov 2010 22:52:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: getTables() doesn't handle umlauts correctly Date: Thu, 25 Nov 2010 22:51:57 +0100 Lines: 37 Message-ID: References: <4CECC215.7030401@ejurka.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-188-174-72-123.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <4CECC215.7030401@ejurka.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/108 X-Sequence-Number: 21229 Kris Jurka wrote on 24.11.2010 08:43: > On 11/23/2010 6:22 AM, Thomas Kellerer wrote: >> table name: umlaut_test_� codepoints: 117 109 108 97 117 116 95 116 >> 101 115 116 95 65533 number of rows: 1 data: öäü codepoints: 246 >> 228 252 >> > > I can reproduce this, but only with databases that have a mismatched > encoding and ctype/collation. That's supposed to be tough to mess up > now, so I was only able to do it on older server versions. What do > you have for encoding, lc_collation, and lc_ctype? encoding: UTF-8 lc_collation: German_Germany.1252 lc_ctype: German_Germany.1252 >\l output from psql would be useful. List of databases Name | Owner | Encoding | Collation | Ctype | Access privileges -------------+----------+----------+---------------------+---------------------+----------------------- thomas | thomas | UTF8 | German_Germany.1252 | German_Germany.1252 | For completeness: version ------------------------------------------------------------- PostgreSQL 9.0.1, compiled by Visual C++ build 1500, 32-bit (1 row) JDBC driver: PostgreSQL 9.0 JDBC4 (build 801) Regards Thomas