From: | "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk> |
---|---|
To: | "Andreas Pflug" <pgadmin(at)pse-consulting(dot)de>, "Josef Springer" <Josef(dot)Springer(at)JOOPS(dot)COM> |
Cc: | <pgsql-odbc(at)postgresql(dot)org> |
Subject: | Re: Usind database with encoding UNICODE and vovel |
Date: | 2005-08-03 09:22:01 |
Message-ID: | E7F85A1B5FF8D44C8A1AF6885BC9A0E4AC973D@ratbert.vale-housing.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-odbc |
> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin(at)pse-consulting(dot)de]
> Sent: 03 August 2005 09:28
> To: Josef Springer
> Cc: pgsql-odbc(at)postgresql(dot)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 :-)
> I wonder if the odbc driver changes the client encoding to
> unicode, as it
> should when connecting to non-ASCII databases.
No it doesn't but it seems a pretty major thing for Hiroshi (Inoue) to
have missed when he wrote the Unicode support, so I suspect he had some
reason for not doing so at the time
You (or Josef) can do this manually though for testing - in the driver
setup for the DSN, click on DataSource, then on 'Page 2'. Add the
following query to the connect settings box, and OK all the dialogues.
SET client_encoding TO 'unicode'
Then, try it out and let us know what happens!
Regards, Dave.
From | Date | Subject | |
---|---|---|---|
Next Message | Josef Springer | 2005-08-03 10:16:10 | Re: Usind database with encoding UNICODE and vovel |
Previous Message | Dave Page | 2005-08-03 09:02:39 | Re: psqlODBC 08.00.0102 available for download |