X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AF44052C80 for ; Thu, 4 Aug 2005 05:48:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 66214-10 for ; Thu, 4 Aug 2005 08:47:55 +0000 (GMT) Received: from vserver0202.onit4u.de (ns.redaex.de [213.133.112.5]) by svr1.postgresql.org (Postfix) with ESMTP id B1BC952C76 for ; Thu, 4 Aug 2005 05:47:52 -0300 (ADT) Received: from JOOPS2.JOOPS.INTERN (dialin-212-144-111-026.arcor-ip.net [212.144.111.26]) by vserver0202.onit4u.de (8.11.6/8.11.6/SuSE Linux 0.5) with ESMTP id j748loQ26600; Thu, 4 Aug 2005 10:47:50 +0200 Received: from joops.com (Workstation-44 [192.168.10.44]) by JOOPS2.JOOPS.INTERN (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id KAA01321; Thu, 4 Aug 2005 10:46:51 +0200 Message-ID: <42F1D592.6070400@joops.com> Date: Thu, 04 Aug 2005 10:45:06 +0200 From: Josef Springer Organization: JOOPS Informationstechnik GmbH User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: Dave Page Cc: pgsql-odbc@postgresql.org Subject: Re: Usind database with encoding UNICODE and vovel X-Priority: 5 (lowest) References: Content-Type: multipart/alternative; boundary="------------090502040600040603080707" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.467 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_60_70, HTML_MESSAGE, HTML_TAG_EXIST_TBODY X-Spam-Level: X-Archive-Number: 200508/44 X-Sequence-Number: 5683 --------------090502040600040603080707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hi Dave, thanks for quick answer. * I used Win2k with german locale * Used the ODBC 08.00.0101 (psqlodbc.dll) My application works well with other databases. Is a point of this the reason of my problems ? What locale settings did you use for database and client ? Best Regards, Josef Springer Dave Page wrote: > Hi Josef, > > =20 > > Test env: > > =20 > > Server and client running on XP Pro, UK English locale > > PostgreSQL 8.0.3 > > psqlODBC-libpq 08.01.0003 (yesterdays release, default settings except = > server/database/username etc) > > Clients: Microsoft Access 2003 > > Microsoft ODBC Test (UNICODE) > > Microsoft ODBC Test (ANSI) > > pgAdmin III (SVN Trunk) > > Microsoft Excel 2003/MS Query (Only SELECTs tested) > > =20 > > Testing with databases created using LATIN1 and UNICODE, INSERT and=20 > SELECTs work exactly as expected using your test string, on all=20 > databases, with all clients. In all cases, the string inserted was=20 > exactly the string that was then retrieved in a subsequent select.=20 > Test strings inserted by each client were also selected back correctly = > by all other clients. > > =20 > > In short, it works perfectly for me. > > =20 > > I'm not sure what to suggest, other than perhaps to try the ODBC Test=20 > programs yourself (available in the Microsoft Data Access SDK). If=20 > they work, then perhaps there is a bug in your application? > > =20 > > Regards, Dave. > > > -------------------------------------------------------------------= ----- > From: Josef Springer [mailto:Josef.Springer@JOOPS.COM] > Sent: 04 August 2005 07:04 > To: Dave Page > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] Usind database with encoding UNICODE and vovel > > Hi Dave, > > i have tested the settings in driver setup for the DSN without any > effect (i send the same command after connected through the port to= o). > =20 > The environment: > Server and client same machineWin2k, german locale > PostgrSQL 8.0.3 > Using the installed ODBC driver > German locale selected in the PostgreSQL installation > > Using no vovels (umlaut) work fine. But using a vovel, curious effe= ct. > I have tried all server and client variations with sense with this > result. All tests are done with a string column containing =E4=F6=FC= =DF > Server database encoding > Client encoding > Result > LATIN > LATIN > Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0 > LATIN > UNICODE Reading works bur witing gets an error 'Bad code xxx for > UNICODE' > UNICODE > UNICODE > Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0 > UNICODE > LATIN > Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0 > UNICODE > WIN1250 > Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0 > SQL_ASCII > UNICODE > Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0 > > > In PgAdminIII the column is displayed correct in all server > database variations ! > > We plan to announce our Business-Process-Management-System > OfficeTalk supportimg PostgreSQL, but without vovels in german > .... What to do ????? > > Best Regards, > Josef Springer > > -- the software company -- > > Orlando-di-Lasso Str. 2 > D-85640 Putzbrunn > > Tel. ++49(0)89 600 6920 > Fax ++49(0)89 600 69220 > mailto Josef.Springer@joops.com > Website http://www.joops.com > > > > Dave Page wrote: > >>=20 >> >>>-----Original Message----- >>>From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]=20 >>>Sent: 03 August 2005 09:28 >>>To: Josef Springer >>>Cc: pgsql-odbc@postgresql.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=20 >>>>encoding, using via ODBC >>>> Client encoding UNICODE. >>>> >>>>I can read strings containing vovels without problems, But writing=20 >>>>strings containing vovels does not work ! >>>>Can anybody assist ? >>>> >>>I've been posting a patch earlier this year (January) because=20 >>>I had the=20 >>>same problem on Unicode databases. But this is not the=20 >>>ultimate patch;=20 >>>it will create data errors with non-unicode databases (e.g.=20 >>>Latin-1).=20 >>> >> >>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=20 >>>unicode, as it=20 >>>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. >> --------------090502040600040603080707 Content-Type: multipart/related; boundary="------------080802040309070609070900" --------------080802040309070609070900 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Dave,

thanks for quick answer.
  • I used Win2k with german locale
  • Used the ODBC 08.00.0101 (psqlodbc.dll)
My application works well with other databases.
Is a point of  this the reason of my problems ?

What locale settings did you use for database and client ?

Best Regards,
Josef Springer

Dave Page wrote:
Signature
Hi Josef,
 
Test env:
 
Server and client running on XP Pro, UK English locale
PostgreSQL 8.0.3
psqlODBC-libpq 08.01.0003 (yesterdays release, default settings except server/database/username etc)
Clients:    Microsoft Access 2003
               Microsoft ODBC Test (UNICODE)
               Microsoft ODBC Test (ANSI)
               pgAdmin III (SVN Trunk)
               Microsoft Excel 2003/MS Query (Only SELECTs tested)
 
Testing with databases created using LATIN1 and UNICODE, INSERT and SELECTs work exactly as expected using your test string, on all databases, with all clients. In all cases, the string inserted was exactly the string that was then retrieved in a subsequent select. Test strings inserted by each client were also selected back correctly by all other clients.
 
In short, it works perfectly for me.
 
I'm not sure what to suggest, other than perhaps to try the ODBC Test programs yourself (available in the Microsoft Data Access SDK). If they work, then perhaps there is a bug in your application?
 
Regards, Dave.


From: Josef Springer [mailto:Josef.Springer@JOOPS.COM]
Sent: 04 August 2005 07:04
To: Dave Page
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] Usind database with encoding UNICODE and vovel

Hi Dave,

i have tested the settings in driver setup for the DSN without any effect (i send the same command after connected through the port too).
 
The environment:
Server and client same machineWin2k, german locale
PostgrSQL 8.0.3
Using the installed ODBC driver
German locale selected in the PostgreSQL installation

Using no vovels (umlaut) work fine. But using a vovel, curious effect.
I have tried all server and client variations with sense with this result. All tests are done with a string column containing äöüß
Server database encoding
Client encoding
Result
LATIN
LATIN
Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0
LATIN
UNICODE Reading works bur witing gets an error 'Bad code xxx for  UNICODE'
UNICODE
UNICODE
Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0
UNICODE
LATIN
Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0
UNICODE
WIN1250
Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0
SQL_ASCII
UNICODE
Writing works. Reading gets the bytearray 63.63,0,1,0,2,47,0

In PgAdminIII the column is displayed correct in all server database variations !

We plan to announce our Business-Process-Management-System OfficeTalk supportimg PostgreSQL, but without vovels in german .... What to do ?????

Best Regards,
Josef Springer

 -- the software company --

Orlando-di-Lasso Str. 2
D-85640 Putzbrunn

Tel. ++49(0)89 600 6920
Fax ++49(0)89 600 69220
mailto Josef.Springer@joops.com
Website http://www.joops.com


Dave Page wrote:
 

-----Original Message-----
From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
Sent: 03 August 2005 09:28
To: Josef Springer
Cc: pgsql-odbc@postgresql.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.
--------------080802040309070609070900-- --------------090502040600040603080707--