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 C20DF9DC835 for ; Mon, 20 Feb 2006 16:07:41 -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 79011-09 for ; Mon, 20 Feb 2006 16:07:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (Postfix) with ESMTP id 798189DC806 for ; Mon, 20 Feb 2006 16:07:39 -0400 (AST) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 4.42) id 1FBHJs-0009j7-3F for pgsql-odbc@postgresql.org; Mon, 20 Feb 2006 20:07:40 +0000 Received: from 84.13.247.43 ([84.13.247.43]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Mon, 20 Feb 2006 20:07:40 +0000 User-Agent: Microsoft-Entourage/11.2.1.051004 Date: Mon, 20 Feb 2006 20:08:41 +0000 Subject: Re: ANSI and Unicode driver From: Dave Page To: Peter Eisentraut CC: Message-ID: Thread-Topic: [ODBC] ANSI and Unicode driver Thread-Index: AcY2SgF2v9eIKxNuQ323F7dGU5fMqwAD2/+J In-Reply-To: <200602201918.07524.peter_e@gmx.net> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.331 required=5 tests=[AWL=0.078, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.331 X-Spam-Level: * X-Archive-Number: 200602/114 X-Sequence-Number: 7243 On 20/2/06 18:18, "Peter Eisentraut" 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.