X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 95BEB4758E6 for ; Sun, 23 Feb 2003 21:45:31 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 68653-04 for ; Sun, 23 Feb 2003 21:45:20 -0500 (EST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 1978D4758DC for ; Sun, 23 Feb 2003 21:45:20 -0500 (EST) Received: (qmail 13767 invoked from network); 24 Feb 2003 02:45:19 -0000 Received: from unknown (HELO mcadnote1) (126.0.1.60) by sd2.tpf-fw-c.co.jp with SMTP; 24 Feb 2003 02:45:19 -0000 From: "Hiroshi Inoue" To: , Cc: "pgsql-odbc" Subject: Re: Unicode, ODBC and MS Access Date: Mon, 24 Feb 2003 11:48:05 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <3E55D97B.8050501@cybertec.at> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/96 X-Sequence-Number: 2714 > -----Original Message----- > From: Hans-J=81Egen Sch=F6nig [mailto:hs@cybertec.at] > > Good morning ... > > We have some minor problems with UNICODE as well. > We are using PostgreSQL 7.3.1 with 7.02.00.05 driver. > > > 2003-02-21 08:39:30 [16593] LOG: connection authorized: user=3Dplank > database=3Dtest > 2003-02-21 08:39:30 [16593] LOG: query: select version() > 2003-02-21 08:39:30 [16593] LOG: duration: 0.003769 sec > 2003-02-21 08:39:30 [16593] LOG: query: set DateStyle to 'ISO' > 2003-02-21 08:39:30 [16593] LOG: duration: 0.000421 sec > 2003-02-21 08:39:30 [16593] LOG: query: set geqo to 'OFF' > 2003-02-21 08:39:30 [16593] LOG: duration: 0.000288 sec > 2003-02-21 08:39:30 [16593] LOG: query: select oid from pg_type where > typname=3D'lo' > 2003-02-21 08:39:30 [16593] LOG: duration: 0.011502 sec > 2003-02-21 08:39:30 [16593] LOG: query: select pg_client_encoding() > 2003-02-21 08:39:30 [16593] LOG: duration: 0.001134 sec > 2003-02-21 08:39:30 [16593] LOG: query: BEGIN > 2003-02-21 08:39:30 [16593] LOG: duration: 0.000273 sec > 2003-02-21 08:39:30 [16593] LOG: query: SELECT max(adr_id) FROM > t_adresse > 2003-02-21 08:39:30 [16593] LOG: duration: 0.007809 sec > 2003-02-21 08:39:30 [16593] LOG: query: SELECT last_value FROM > t_adresse_adr_id_seq > 2003-02-21 08:39:30 [16593] LOG: duration: 0.001503 sec > 2003-02-21 08:39:30 [16593] LOG: query: INSERT INTO t_adresse > VALUES('117',NULL,'=D3ELOL.Z=C1R=D3V','AT=C9TRotoform > ajt=F3kilincs','MUK',NULL,'AT','6020',NULL,NULL,NULL,NULL,NULL,NULL,NULL) > 2003-02-21 08:39:30 [16593] ERROR: Invalid UNICODE character sequence > found (0xd345) > 2003-02-21 08:39:31 [16593] LOG: query: ROLLBACK > 2003-02-21 08:39:31 [16593] LOG: duration: 0.000203 sec > > > The server side database is set to UNICODE. > > [hs@backup hs]$ psql -l > List of databases > Name | Owner | Encoding > -----------+-------+----------- > > template0 | hs | SQL_ASCII > template1 | hs | SQL_ASCII > test | hs | UNICODE > (7 rows) > > > Somehow the driver seems to select the client encoding but it does not > care about it. I am using RedHat 7.3 and it's default UNIX side > ODBC stuff. > > Also: I have an additional problem because "=D3ELOL" is not what the > client is supposed to send me. The "O" should be an "O" with something > like a " on top of it (some hungarian symbol). A tool is supposed to > write all data inside an Access database to PostgreSQL. On the Windows > desktop the hungarian symbols are displayed properly. Where do we lose > that information or is it a problem with my terminal settings on Linux? > ([hs@backup postgresql-7.3.1]$ echo $TERM $LANG > xterm en_US.iso885915) > > Does anybody have an idea? You seem to have to set the client_encoding using the *Connect Settings* DSN option. regards, Hiroshi Inoue