X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3B5B29FB329 for ; Mon, 31 Jul 2006 00:46:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 37964-05-2 for ; Mon, 31 Jul 2006 00:46:34 -0300 (ADT) X-Greylist: delayed 01:00:09.134641 by SQLgrey- Received: from nabe.tequila.jp (nabe.tequila.jp [211.14.136.221]) by postgresql.org (Postfix) with ESMTP id 05CD19FB331 for ; Mon, 31 Jul 2006 00:46:30 -0300 (ADT) X-Virus-Scanned: by cgpav (out) Received: from [192.168.12.6] (account clemens.schwaighofer@tequila.co.jp [192.168.12.6] verified) by nabe.tequila.jp (CommuniGate Pro SMTP 5.0.9) with ESMTPSA id 6152722 for pgsql-odbc@postgresql.org; Mon, 31 Jul 2006 11:46:24 +0900 Message-ID: <44CD6EFB.3050208@tequila.co.jp> Date: Mon, 31 Jul 2006 11:46:19 +0900 From: Clemens Schwaighofer Organization: TEQUILA\Japan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.4) Gecko/20060713 Thunderbird/1.5.0.4 Mnenhy/0.7.4.666 MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: PGSQL 8.1 with UTF-8 databses and Windows ODBC data encoding error. X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1CBD42BE11666E563D24D9F8" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200607/50 X-Sequence-Number: 7961 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1CBD42BE11666E563D24D9F8 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Problem with Postgres 8.1 UTF8 databses and the Postgres 8.03.0002 windows ODBC driver. I have a Debian/testing box with Postgres 8.1 and several DBs in UTF8 with japanese text inside. My servers are two windows 2000 servers. One is in english, one is Japanese - OS is in this language, and the Country settings are set also like this. If I use the old 7.03.0200 Postgres ODBC driver and I connect from the english Windows 2000 server I get the data back in UTF-8 (I sent SET client_encoding TO 'UTF-8'); On the japanese Windows 2000 I always get SJIS with the 7.03.0200 driver unless I set the country settings to English, then it accets the client encoding UTF-8. After I upgraded the DB to 8.1, I also had to upgrade the driver. But after the upgrade I now get only Qeustionmarks, instead of japanese text. Same on both servers. BUT if I switch the japaense Windows 2000 country settings back to Japanese, I get SJIS encoded data back, whatever "SET client_encoding" I send to the server. If I switch the japanese Server to english, I get the same Mojibake Questonmarks. I also have to use "Version 6.4" driver settings, or I get no data back (log error says rrmsg='Unexpected protocol character during authentication', if I choose 7.4+ in the settings). I am not sure why, or what. But I hope this can be fixed somehow, so I can define what kind of charset I would like to recieve in the ASP programs. Right now I still have to run with the old river and the 7.4 databses for the windows applications. -- [ Clemens Schwaighofer -----=====:::::~ ] [ TEQUILA\ Japan IT Group ] [ 6-17-2 Ginza Chuo-ku, Tokyo 104-8167, JAPAN ] [ Tel: +81-(0)3-3545-7703 Fax: +81-(0)3-3545-7343 ] [ http://www.tequila.co.jp ] --------------enig1CBD42BE11666E563D24D9F8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEzW7/jBz/yQjBxz8RAsHtAJ9cw2dhCecIlVgeDHOEQ7BSfns2MgCg6LKQ uXPS4oijvKRoPcw8jZ67upc= =o3D0 -----END PGP SIGNATURE----- --------------enig1CBD42BE11666E563D24D9F8--