pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Johann Zuschlag <zuschlag2@online.de>
To: Dave Page <dpage@vale-housing.co.uk>
To: pgsql-odbc@postgresql.org
Subject: Re: Unicode support, first test results
Date: Sat, 03 Sep 2005 13:34:32 +0200
Message-ID: <43198A48.5070008@online.de> (raw)
In-Reply-To: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9D93@ratbert.vale-housing.co.uk>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9D93@ratbert.vale-housing.co.uk>

Dave Page schrieb:

>>Hi Dave,
>>
>>just send it to me (the windows dll). Even though I just switched my 
>>linux server to UTF-8. :-)
>>I'll test it with the old enviroment.
>>    
>>
>
>Attached.
>
>Thanks, Dave
>  
>
Hi Dave,

I didn't have much time to test the driver this week. But there are some 
preliminary results:

I created a Latin1 database on my unicode linux server (with initdb 
utf8. I have to repeat the same test with a local C initdb).

1. I can insert german characters (a, o, u Umlaut).

2. When my application reads them back, I get '?'. Funny!

3. I put the string SET CLIENT_ENCODING=UNICODE in the driver

4. Now I can read back my german characters. Puzzles me even more.

Next test:

1. I start with SET CLIENT_ENCODING=UNICODE in the driver

2. I try to insert characters with a german character

3. The server reports: ERROR:  could not convert UTF-8 character 0x00f6 
to ISO8859-1

So it seems, like some in the list already reported, that it just works 
one way. I would assume, that the conversion in the driver works, but 
somehow the conversion is not called properly. Can't we just put tags in 
the driver for test purposes. So I know the driver isn't using unicode 
at all.

Furthermore I couldn't get the driver working with unicode so far. It 
seems that the wrong combination of conversions in both directions may 
be a part of it. But more tests have to be done yet.

I will have more time to test the driver next week.

regards
Johann




Message-ID: <43198A48.5070008@online.de>
Permalink:  ../43198A48.5070008@online.de/
Also on:    postgresql.org/message-id/43198A48.5070008@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, dpage@vale-housing.co.uk
  Subject: Re: Unicode support, first test results
  In-Reply-To: <43198A48.5070008@online.de>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC9D93@ratbert.vale-housing.co.uk> <43198A48.5070008@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