pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: marcus@dactylis.com
To: hs@cybertec.at
Cc: pgsql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: Unicode, ODBC and MS Access
Date: Mon, 24 Feb 2003 11:48:05 +0900
Message-ID: <EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp> (raw)
In-Reply-To: <3E55D97B.8050501@cybertec.at>

> -----Original Message-----
> From: Hans-JEgen Schönig [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=plank
> database=test
> 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='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,'ÓELOL.ZÁRÓV','ATÉTRotoform
> ajtókilincs','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 "ÓELOL" 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




view thread (5+ messages)

Message-ID: <EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp>
Permalink:  ../EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp/
Also on:    postgresql.org/message-id/EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Inoue@tpf.co.jp, marcus@dactylis.com, hs@cybertec.at
  Subject: Re: Unicode, ODBC and MS Access
  In-Reply-To: <EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp>
  References: <3E55D97B.8050501@cybertec.at> <EKEJJICOHDIEMGPNIFIJKEKCKMAA.Inoue@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox