pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: gcg@gl.aser.de
To: Philippe Lang <philippe.lang@attiksystem.ch>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Workaround: No fun with MS Access and Latin1
Date: Fri, 10 Sep 2004 13:34:49 +0200
Message-ID: <20040910113449.GA2137@gl.aser.de> (raw)
In-Reply-To: <AC7011B8-0186-11D9-A294-000A957E650E@gl.aser.de>
References: <6C0CF58A187DA5479245E0830AF84F420803EC@poweredge.attiksystem.ch>
	<AC7011B8-0186-11D9-A294-000A957E650E@gl.aser.de>

Replying myself: Latin1 characters work when using the ODBC library
version 7.3.200 with the "Postgresql" driver. The Server log does not 
show "set client_encoding to 'utf8'" anymore, everything works fine now.

The Legacy and Unicode drivers give an ODBC error, they don't even connect
to the backend (no connection logged).

7.3.209, 7.5.001, 7.5.002 (from the PG 8 Beta1 MSI) seem to fail
converting Latin1 to/from Unicode correctly when sending SQL commands to
the backend.  Perhaps this is also the reason why primary keys on
varchar fields did not work?  I'll try that again now with the older
ODBC lib. 

Thanks Philippe for pointing me in the right direction.

Best regards,

Christof

On Wed, Sep 08, 2004 at 01:03:11PM +0200, Christof Glaser wrote:
> Hello Philippe,
> 
> Am 08.09.2004 um 08:21 schrieb Philippe Lang:
> 
> >Hello Christof,
> >
> >What ODBC driver are you using?
> >
> >There are 3 drivers: Postgresql, Postgresql Legacy, Postgresql Unicode.
> 
> I'm not so sure, but I think it is called 'Postgresql' as I remember 
> seeing this option somewhere in the ODBC dialogs.
> There were no other options to choose from.
> 
> The servers' log file shows me "select pg_client_encoding()" and 
> directly after "set client_encoding to 'UTF8'", hence I assume it is a 
> Unicode version. I'm currently not at the Windows machine, but I could 
> send logfile snippets later, if necessary.
> 
> >I'm using the first one "Postgresql", (snapshot 208 or 209), with 
> >Access 2000, 2002 or 2003 without any problem. I haven't tried Access 
> >97.
> >
> >My databases are encoded in LATIN1 as well, for French. Update with 
> >accents are fine, at least with PGSQL 7.3.x and 7.4.x.
> 
> Sound good. Does your server also run on Windows (cygwin)?
> 
> Perhaps I give 7.4. a try on cygwin, that's easier than switching to a 
> newer Access version.
-- 
    gl.aser  .  software engineering  . internet service
Dölitzer Straße 37  .  04277 Leipzig   .   http://gl.aser.de
fon 0341.303 20 51 . fax 0341.303 20 52 . sms 0177.779 28 43
PHP . Lisp . C++ . HTML . SQL . LaTeX . Linux . Mac .  WinCC



Message-ID: <20040910113449.GA2137@gl.aser.de>
Permalink:  ../20040910113449.GA2137@gl.aser.de/
Also on:    postgresql.org/message-id/20040910113449.GA2137@gl.aser.de

 · 

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: gcg@gl.aser.de, philippe.lang@attiksystem.ch
  Subject: Re: Workaround: No fun with MS Access and Latin1
  In-Reply-To: <20040910113449.GA2137@gl.aser.de>
  References: <6C0CF58A187DA5479245E0830AF84F420803EC@poweredge.attiksystem.ch> <AC7011B8-0186-11D9-A294-000A957E650E@gl.aser.de> <20040910113449.GA2137@gl.aser.de>

* 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