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 DB00852E27 for ; Fri, 19 Aug 2005 05:35:40 -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 62632-08 for ; Fri, 19 Aug 2005 08:35:31 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by svr1.postgresql.org (Postfix) with ESMTP id 690C852DB7 for ; Fri, 19 Aug 2005 05:35:29 -0300 (ADT) Received: from p548F1B85.dip0.t-ipconnect.de [84.143.27.133] (helo=pse.dyndns.org) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwtQ-1E62La2DhD-0003ji; Fri, 19 Aug 2005 10:35:30 +0200 Received: from [192.168.0.2] (helo=[192.168.0.2]) by pse.dyndns.org with esmtp (Exim 4.44) id 1E62LZ-0000Yi-8G for pgsql-odbc@postgresql.org; Fri, 19 Aug 2005 10:35:29 +0200 Message-ID: <430599D0.9030801@pse-consulting.de> Date: Fri, 19 Aug 2005 10:35:28 +0200 From: Andreas Pflug User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Bug or not about ASCII and Multi-Byte character set Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de login:0ce7ee5c3478b8d72edd8e05ccd40b70 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.18 required=5 tests=[AWL=0.130, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/163 X-Sequence-Number: 5802 Ben Trewern wrote: > I'd like to make a few points on this issue. > > 1. This problem should be mentioned in the FAQs as largely as possible as > it is difficult to rectify if you have fallen into this trap. > > 2. If you do have data in SQL_ASCII the old ODBC driver worked, PgAdmin III > works, Delphi and zeoslib works, I understand why there may be a problem but > is it not possible to make the new 8.x work? > > 3. Correct me if I'm wrong but SQL_ASCII is PostgreSQL's default encoding. > If this isn't sorted out then we'll see lots more of these messages for > help. > > 4. I'd like to disagree with your "DO NOT USE ASCII FOR NON-ASCII DATA" as > if you read any of Tom Lanes many messages on the subject. Here's a quote: > > "The SQL_ASCII setting isn't an > encoding, really; it's a declaration of ignorance. In this setting > the server will just store and regurgitate whatever character strings > you send it. This will work fine, more or less, if all your clients > use exactly the same encoding and you don't care about functions like > upper()/lower()" Mind the *if*. You'll always create mess when mixing drivers/apps. Ignoring proper encodings is always non-standard, so don't expect drivers to support it, and ask for support. Server encoding is for fixing this issue, and all drivers are obeying this. So if you want a guarantee to have a working configuration, DO NOT USE ASCII FOR NON-ASCII DATA. Regards, Andreas