pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johann Zuschlag <zuschlag2@online.de>
To: Hiroshi Inoue <inoue@tpf.co.jp>
Cc: dpage@vale-housing.co.uk
Cc: pgsql-odbc@postgresql.org
Subject: Re: psqlODBC-Driver Test / text fields
Date: Tue, 28 Mar 2006 16:01:05 +0200
Message-ID: <442941A1.40309@online.de> (raw)
In-Reply-To: <44283279.3040506@tpf.co.jp>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4011C97F9@ratbert.vale-housing.co.uk>
	<442809D5.2030805@online.de>
	<44283279.3040506@tpf.co.jp>

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




view thread (26+ messages)  latest in thread

Message-ID: <442941A1.40309@online.de>
Permalink:  ../442941A1.40309@online.de/
Also on:    postgresql.org/message-id/442941A1.40309@online.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: zuschlag2@online.de, inoue@tpf.co.jp, dpage@vale-housing.co.uk
  Subject: Re: psqlODBC-Driver Test / text fields
  In-Reply-To: <442941A1.40309@online.de>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4011C97F9@ratbert.vale-housing.co.uk> <442809D5.2030805@online.de> <44283279.3040506@tpf.co.jp> <442941A1.40309@online.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox