From: Dave Page <dpage@vale-housing.co.uk>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ANSI and Unicode driver
Date: Mon, 20 Feb 2006 20:08:41 +0000
Message-ID: <C01FD249.639F%dpage@vale-housing.co.uk> (raw)
In-Reply-To: <200602201918.07524.peter_e@gmx.net>
On 20/2/06 18:18, "Peter Eisentraut" <peter_e@gmx.net> wrote:
> Dave Page wrote:
>> The Unicode driver adds a bunch of unicode-specific APIs. Our ANSI
>> driver can handle Unicode data as multibyte strings as well, but
>> without the Unicode APIs that many non-multibyte aware versions of
>> Windows require (if that makes sense!).
>
> Well, the information available to me seems to indicate that Unicode
> drivers will handle ANSI applications just fine, and of course our
> Unicode driver will also handle any server encoding,
Yes,that's quite correct.
> so the question is
> why the ANSI version needs to exist.
Well, for 8.0 we did release only 1 driver for that reason, but we kept
getting odd reports that it didn't handle non-ASCII characters (with umlauts
or accents etc) properly in some situations, that others, including myself
could never reproduce.
After lots of on-list discussion in the latter part of last year during
which I made it clear on a number of occasions that we needed help from
someone who understood encodings better than I, we eventually concluded that
the best solution was to reinstate the old ansi driver, as it appeared to my
limited understanding that whilst basic ASCII characters mapped directly
into the lower bytes of the Unicode function function parameters, we needed
some conversion code to cope with other characters (which the SQL Server
driver appears to have as a configurable options for example).
Reinstating the ANSI only driver fixed things instantly for all those that
were complaining BTW, though I did note an email from Hiroshi Inoue earlier
today implying that it's actually the 'wise' DM that handles the conversion
(although the complainants were all on Windows iirc). FWIW, the
07_03_ENHANCED branch does only build the Unicode driver, though I'm not yet
sure if it will suffer the same problems that 08.00 did.
Feel free to explain what exactly is wrong if you know :-)
Regards, Dave.
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: dpage@vale-housing.co.uk, peter_e@gmx.net
Subject: Re: ANSI and Unicode driver
In-Reply-To: <C01FD249.639F%dpage@vale-housing.co.uk>
References: <200602201918.07524.peter_e@gmx.net> <C01FD249.639F%dpage@vale-housing.co.uk>
* 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