X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D8E63D76E4 for ; Wed, 31 Aug 2005 12:11:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67744-02 for ; Wed, 31 Aug 2005 15:11:25 +0000 (GMT) Received: from fep30-app.kolumbus.fi (fep30-0.kolumbus.fi [193.229.0.32]) by svr1.postgresql.org (Postfix) with ESMTP id 3AD6CD8566 for ; Wed, 31 Aug 2005 12:11:22 -0300 (ADT) Received: from [192.168.1.3] (really [84.230.132.204]) by fep30-app.kolumbus.fi with ESMTP id <20050831151121.CNCA13482.fep30-app.kolumbus.fi@[192.168.1.3]>; Wed, 31 Aug 2005 18:11:21 +0300 Message-ID: <4315C897.6050400@kolumbus.fi> Date: Wed, 31 Aug 2005 18:11:19 +0300 From: Marko Ristola User-Agent: Debian Thunderbird 1.0.2 (X11/20050817) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Anoop Kumar , pgsql-odbc@postgresql.org Subject: Re: Unicode support References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.097 required=5 tests=[AWL=0.047, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/250 X-Sequence-Number: 5889 LATIN1 and UCS have one common point by design: 0x00 - 0xFF are equal numbers, so the SQL_ASCII ignorance means, that LATIN1 characters won't get changed! So, this means, that: 0xE4 in ISO-8859-1 is the same as 0x00E4 in UCS-2. Just the number of needed bytes change. Reference: "man 7 unicode" Marko Ristola Dave Page wrote: >Hi Anoop and anyone else who might be interested, > >I've been thinking about how the Unicode support might be improved to >allow the old 07.xx non-unicode style behaviour to work for those that >need it. At them moment, when we connect using on of the wide connect >functions, the CC->unicode flag is set to true. This only affects a few >options, such as pgtype_to_concise_type()'s mapping of PG types to SQL >types. > >It seems to me that perhaps we should set CC->unicode = 1, only upon >connection to a Unicode database. Anything else, we leave it set to 0 so >that it always maps varchars etc to ANSI types, and handles other >encodings in single byte or non-unicode multibyte mode (which worked >fine in 07.xx where those encodings where appropriate, such as SJIS in >Japan). This should also help BDE based apps, which further research has >shown me are broken with Unicode columns in SQL Server and Oracle as >well as PostgreSQL (search unicode + BDE on Google Groups for more). > >Am I seeing a possible improvement where in fact there isn't one, or >missing some obvious downside? > >Regards, Dave. > >---------------------------(end of broadcast)--------------------------- >TIP 2: Don't 'kill -9' the postmaster > >