X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 8064A9DC9EF for ; Tue, 28 Mar 2006 10:01:16 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 57251-05 for ; Tue, 28 Mar 2006 10:01:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by postgresql.org (Postfix) with ESMTP id 26BC99DC83C for ; Tue, 28 Mar 2006 10:01:14 -0400 (AST) Received: from [84.143.31.64] (helo=[84.143.31.64]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis), id 0ML2Dk-1FOEkp2oBj-0001E3; Tue, 28 Mar 2006 16:01:16 +0200 Message-ID: <442941A1.40309@online.de> Date: Tue, 28 Mar 2006 16:01:05 +0200 From: Johann Zuschlag User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Hiroshi Inoue CC: dpage@vale-housing.co.uk, pgsql-odbc@postgresql.org Subject: Re: psqlODBC-Driver Test / text fields References: <442809D5.2030805@online.de> <44283279.3040506@tpf.co.jp> In-Reply-To: <44283279.3040506@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:412dbd38c76468b7d75e624f8951f259 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.12 required=5 tests=[AWL=0.120] X-Spam-Score: 0.12 X-Spam-Level: X-Archive-Number: 200603/188 X-Sequence-Number: 7474 Hiroshi Inoue schrieb: > >> >> 2. Searching for a string starting with o-Umlaut (german character) >> doesn't return any results (in my app.). >> >> 2006-03-27 16:50:37 [2931] LOG: statement: declare "SQL_CUR0210FD50" >> cursor with hold for SELECT t6.* FROM KUNDE t6 WHERE t6.name >= 'ö' >> AND t6.name <= 'öz' ORDER BY t6.name ASC, t6.kundenid ASC >> >> Maybe the WHERE-statement is not parsed by the driver. But the hex >> representation of 'ö' is 'C3B6', that is the correct UTF8 code (not >> unicode) of o-Umlaut. > > > Hi Johann, > Could you try the same query using psql with the client_encoding 'UTF8' ? > > regards, > Hiroshi Inoue > Hi Hiroshi, Do you mean psql on the Linux-server? my locales: de_DE.ISO-8859-1 (default) de_DE.UTF-8 de_DE.UTF-8@euro de_DE.ISO-8859-15@euro I call psql: - set client_encoding='UTF8'; - select name from kunde; result e.g: 'öä-test' (=o-Umlaut, a-Umlaut, -test) - select name from kunde where name >= 'ö' and name <= 'öz' order by name asc; result: ERROR: Unicode characters greater than or equal to 0x10000 are not supported export LANG=de_DE.UTF-8 doesn't change the behavior. (select name from kunde where name >= 'ö' and name <= 'öz' order by name asc; works of course) regards, Johann