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 728B252E0E for ; Sun, 14 Aug 2005 17:00:37 -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 40404-01 for ; Sun, 14 Aug 2005 20:00:34 +0000 (GMT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 84A6852E56 for ; Sun, 14 Aug 2005 17:00:33 -0300 (ADT) Received: from mailgate.vale-housing.co.uk ([194.217.48.34] helo=vale-housing.co.uk) by anchor-post-34.mail.demon.net with esmtp (Exim 4.42) id 1E4Oeo-00031P-DT for pgsql-odbc@postgresql.org; Sun, 14 Aug 2005 20:00:34 +0000 Received: from 192.168.1.106 ([192.168.1.106]) by ratbert.vale-housing.co.uk ([192.168.1.106]) with Microsoft Exchange Server HTTP-DAV ; Sun, 14 Aug 2005 20:00:33 +0000 From: "Dave Page" To: , Cc: Subject: Re: Bug or not about ASCII and Multi-Byte character set Message-ID: <000101c5a10a$d47e0e02$6a01a8c0@valehousing.co.uk> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 14 Aug 2005 21:00:27 +0100 MIME-Version: 1.0 thread-topic: [ODBC] Bug or not about ASCII and Multi-Byte character set X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 thread-index: AcWhCtR+ve5QU31aRaWG7UqTxp2buw== X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.563 required=5 tests=[AWL=-1.513, MSGID_DOLLARS=3.076] X-Spam-Level: * X-Archive-Number: 200508/135 X-Sequence-Number: 5774 As I have said a number of times now, DO NOT USE ASCII FOR NON-ASCII = DATA!!! Whilst some apps like pgAdmin may do what you expect, other apps and = interfaces may not. Instead of ASCII, use the correct encoding for your data, or try Unicode = if unsure. Regards, Dave -----Original Message----- From: "Josef Springer" Sent: 14/08/05 18:49:49 To: "ZF" Cc: "pgsql-odbc@postgresql.org" Subject: Re: [ODBC] Bug or not about ASCII and Multi-Byte character set Multibyte characters are written correctly but readed wrong by the ODBC driver. Seems to work on WinXP clients right. Only Win2k clients may have this problem. This bug may be corrected in PostgreSQL 8.1. Josef Springer ZF wrote: >version: psqlodbc 08.00.0101 and 08.00.0102 > >The server database encoding is ASCII in win2000. After inserting = several multi-byte characters with pgAdmin3(version: 1.2.1), i found the = odbc driver can't provide the right data (application is written in = visual c++ and call ODBC API to access db server). All displayed = multi-byte char set data were not correct but the ASCII data was right. = However, pgAdmin3 can correctly insert and select all data .=20 > >Then i read the "mylog" file and found the multi-byte data have been = got correctly from server.=20 >Is it possible that some function (maybe the converting function) have = a little bug? > > >P.S. >if the server db encoding is UNICODE and producing a new psqlodbc.dll = through deleting all SQL*W function in 'psqlodbc_win32.def' file, i got = Delphi applications using odbc driver can show all right data. >---------------------------(end of = broadcast)--------------------------- >TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > --=20 mit freundlichen Gr=C3=BCssen, Josef Springer (Gescha"ftsleitung) -- 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 -----Unmodified Original Message----- Multibyte characters are written correctly but readed wrong by the ODBC driver. Seems to work on WinXP clients right. Only Win2k clients may have this problem. This bug may be corrected in PostgreSQL 8.1. Josef Springer ZF wrote: >version: psqlodbc 08.00.0101 and 08.00.0102 > >The server database encoding is ASCII in win2000. After inserting = several multi-byte characters with pgAdmin3(version: 1.2.1), i found the = odbc driver can't provide the right data (application is written in = visual c++ and call ODBC API to access db server). All displayed = multi-byte char set data were not correct but the ASCII data was right. = However, pgAdmin3 can correctly insert and select all data .=20 > >Then i read the "mylog" file and found the multi-byte data have been = got correctly from server.=20 >Is it possible that some function (maybe the converting function) have = a little bug? > > >P.S. >if the server db encoding is UNICODE and producing a new psqlodbc.dll = through deleting all SQL*W function in 'psqlodbc_win32.def' file, i got = Delphi applications using odbc driver can show all right data. >---------------------------(end of = broadcast)--------------------------- >TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > --=20 mit freundlichen Gr=C3=BCssen, Josef Springer (Gescha"ftsleitung) -- 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