From: Christopher Gillin <crgillin@yahoo.com>
To: pgsql-odbc@postgresql.org
Subject: Encoding Issues
Date: Fri, 4 Nov 2005 19:17:02 -0800 (PST)
Message-ID: <20051105031702.10263.qmail@web53905.mail.yahoo.com> (raw)
Hello,
My current setup is a PostgreSQL server (7.4.5)
running on RH 9, a database with UNICODE character set
and trying to connect using Windows ODBC Manager with
Postgres driver (8.01.00.05).
I'm using the UNICODE version of the driver to
retrieve some UTF8 characters form the database. The
problem is, in some stage of the SQLGetData it's
trying to do a conversion and breaking the character.
In both of the following cases I SET_CLIENT ENCODING
TO 'UNICODE'. This is from mylog_****.log
[3552][SQLGetData][3552]PGAPI_GetData: enter,
stmt=4140704
[3552] num_rows = 1
[3552] value = 'ä'
[3552]**** PGAPI_GetData: icol = 0, fCType = 1,
field_type = 1043, value = 'ä'
[3552]copy_and_convert: field_type = 1043, fctype = 1,
value = 'ä', cbValueMax=1000
[3552]DEFAULT: len = 1, ptr = '�?'
[3552] SQL_C_CHAR, default: len = 1, cbValueMax =
1000, rgbValueBindRow = '�'
Using the ANSI version of the driver I don't encounter
this problem
[2788][SQLGetData][2788]PGAPI_GetData: enter,
stmt=4140528
[2788] num_rows = 1
[2788] value = 'ä'
[2788]**** PGAPI_GetData: icol = 0, fCType = 1,
field_type = 1043, value = 'ä'
[2788]copy_and_convert: field_type = 1043, fctype = 1,
value = 'ä', cbValueMax=1000
[2788]DEFAULT: len = 2, ptr = 'ä'
[2788] SQL_C_CHAR, default: len = 2, cbValueMax =
1000, rgbValueBindRow = 'ä'
Does anyone know why this wouldn't work with the
UNICODE version of the PostgreSQL driver?
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
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: crgillin@yahoo.com
Subject: Re: Encoding Issues
In-Reply-To: <20051105031702.10263.qmail@web53905.mail.yahoo.com>
References: <20051105031702.10263.qmail@web53905.mail.yahoo.com>
* 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