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 CAC1652A36 for ; Fri, 19 Aug 2005 06:35:05 -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 10808-02 for ; Fri, 19 Aug 2005 09:35:00 +0000 (GMT) Received: from smtp-out.completel.net (smtp-out.completel.net [83.145.110.35]) by svr1.postgresql.org (Postfix) with ESMTP id 44F3C529D1 for ; Fri, 19 Aug 2005 06:34:58 -0300 (ADT) Received: from mail.emicnetworks.com (unknown [213.244.29.170]) by smtp-out.completel.net (Postfix) with SMTP id 62D7425C036 for ; Fri, 19 Aug 2005 11:35:00 +0200 (CEST) Received: (nullmailer pid 20342 invoked by uid 1000); Fri, 19 Aug 2005 09:37:32 -0000 Date: Fri, 19 Aug 2005 11:37:32 +0200 From: Marc Herbert To: pgsql-odbc@postgresql.org Subject: Re: Bug or not about ASCII and Multi-Byte character set Message-ID: <20050819093732.GG16062@emicnetworks.com> References: <430599D0.9030801@pse-consulting.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <430599D0.9030801@pse-consulting.de> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.04 required=5 tests=[AWL=-0.010, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/164 X-Sequence-Number: 5803 On Fri, Aug 19, 2005 at 10:35:28AM +0200, Andreas Pflug wrote: > Ben Trewern wrote: > >I'd like to make a few points on this issue. > > > >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? > > > > > >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()" If SQL_ASCII is/was equivalent to "ignoring encoding", then it looks/looked pretty misnamed! For instance if someone wants some UTF16 from/to ASCII then some conversion is definitely needed and ASCII==ignorance is then a bug. Encoding ignorance should rather be called SQL_BINARY. A BINARY setting for strings makes sense, just like when transfering text files using FTP: you just don't trust FTP for encodings and use it like a filesystem. BINARY just means that: "don't mess-up with encodings and let something else deal with the issue". Of course you cannot then use upper() or whatever if you don't want to reveal the encoding you use... > Mind the *if*. You'll always create mess when mixing drivers/apps. I guess some people knew what they did and simply did not mixed driver/apps, or in a way they mastered and that worked. > Ignoring proper encodings is always non-standard, > so don't expect drivers to support it, and ask for support. Well while reading at the complaints it seems this BINARY mode was there before (by "accident"?), even if misnamed... so the BINARY mode recently disappeared? No surprise some people become angry :-) > 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. Looks like people fixed issues by themselves before, and Postgres recent fixing does not interact nicely with theirs? PS: BTW "unicode" is not one encoding but many different ones.