X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E325052848 for ; Fri, 5 Aug 2005 18:54:37 -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 61227-04 for ; Fri, 5 Aug 2005 21:54:35 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by svr1.postgresql.org (Postfix) with ESMTP id E45F152825 for ; Fri, 5 Aug 2005 18:54:34 -0300 (ADT) Received: from p548F2737.dip0.t-ipconnect.de [84.143.39.55] (helo=pse.dyndns.org) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML21M-1E1A9E0mHF-0002xr; Fri, 05 Aug 2005 23:54:36 +0200 Received: from pse1 ([192.168.0.3]) by pse.dyndns.org with esmtp (Exim 4.44) id 1E1A9C-00040l-L2; Fri, 05 Aug 2005 23:54:34 +0200 Message-ID: <42F3E01A.30902@pse-consulting.de> Date: Fri, 05 Aug 2005 21:54:34 +0000 From: Andreas Pflug User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dave Page Cc: Josef Springer , pgsql-odbc@postgresql.org Subject: Re: Usind database with encoding UNICODE and vovel References: In-Reply-To: X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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.228 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200508/69 X-Sequence-Number: 5708 Dave Page wrote: > > > >>-----Original Message----- >>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de] >>Sent: 03 August 2005 09:28 >>To: Josef Springer >>Cc: pgsql-odbc@postgresql.org; Dave Page >>Subject: Re: [ODBC] Usind database with encoding UNICODE and vovel >> >>Josef Springer wrote: >> >>>Hi anybody, >>> >>>Encironment: Win2k, german locale, PostgreSQL database with UNICODE >>>encoding, using via ODBC >>> Client encoding UNICODE. >>> >>>I can read strings containing vovels without problems, But writing >>>strings containing vovels does not work ! >>>Can anybody assist ? >> >>I've been posting a patch earlier this year (January) because >>I had the >>same problem on Unicode databases. But this is not the >>ultimate patch; >>it will create data errors with non-unicode databases (e.g. >>Latin-1). > > > OK, well as you know Andreas, my unicode/locale etc. experience is > pretty much limited to what I've learnt from you and Hiroshi Saito on > pgAdmin, however, I'm on a roll fixing bugs in psqlODBC at the moment, > so let's try to sort this :-) Sadly I don't even have the time to follow this threas thorougly. IMHO the current pgadmin behaviour should be workable for all situations (unless data isn't really stored in the encoding as the server encoding states): Client encoding is set to UNICODE automatically for all server encodings excluding SQL_ASCII and MULE_INTERNAL, because for all other encodings proper conversions exist. For SQL_ASCII and MULE_INTERNAL these are used as client encoding too, hoping the app knows what to do. In case the server encoding is wrong, the client will have to have to play with client encoding itself. In this case, the driver shouldn't try to do conversions itself, but leave as much as possible to the client. Regards, Andreas