X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 02327DA1F6 for ; Wed, 5 Oct 2005 11:28:57 -0300 (ADT) 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 28855-09 for ; Wed, 5 Oct 2005 14:28:50 +0000 (GMT) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr1.postgresql.org (Postfix) with ESMTP id E5EA4DA1E8 for ; Wed, 5 Oct 2005 11:28:51 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ENADY-0005Ve-PM for pgsql-jdbc@postgresql.org; Wed, 05 Oct 2005 16:26:00 +0200 Received: from 83.145.96.114 ([83.145.96.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Oct 2005 16:26:00 +0200 Received: from Marc.Herbert by 83.145.96.114 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 05 Oct 2005 16:26:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: Selecting on non ASCII varchars Date: Wed, 05 Oct 2005 16:22:37 +0200 Lines: 18 Message-ID: <87vf0cjb6a.fsf@meije.emic.fr> References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com> <43408C35.6020902@opencloud.com> <366C3C4C-7E0A-4154-A02E-8A0B6F016157@broadrelay.com> <200510041714.01768.vadimn@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.114 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:XHY831K/v+POdafRm+acS5+4/eg= X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.593 required=5 tests=[AWL=-0.012, FORGED_RCVD_HELO=0.05, RCVD_BY_IP=0.024, RCVD_NUMERIC_HELO=1.531] X-Spam-Level: * X-Archive-Number: 200510/19 X-Sequence-Number: 13950 Vadim Nasardinov writes: > On Tuesday 04 October 2005 16:16, Jeremy LaCivita wrote: >> Correct me if i'm wrong, but that says to me that the Strings were >> in UTF-8 already, but Java didn't know it, so it couldn't send them >> to postgres properly. > > It's meaningless to ask what encoding a String has. String are > sequence of chars -- they don't have an encoding. Actually they are encoded using UTF-16 Granted, this is the no-brainer "same value" encoding... as long as codepoint < U+FFFF