From: CHEN <trainee12@163.com>
To: pgsql-odbc@postgresql.org
Subject: UICODE SUPPORT IN 8.00.0102
Date: Fri, 5 Aug 2005 11:01:50 +0800 (CST)
Message-ID: <42F2D69E.000039.26598@bj163app14.163.com> (raw)
server encoding : EUC_CN
client: PSQLODBC8.00.0102 +WIN98
When I select some chinese characters from sever, these characters display '?????'.
SHOW CLIENT_ENCODING ----- EUC_CN
SET CLIENT_ENCODING=UNICODE, Then characters display normal.
So I need add this setting every time when connecting.
But it don't nedd in psqlodbc8.00.0101.
I think it is a bug:
connetcion.c(download from src psqlodbc8.00.0102) line 1025:
--------------------------------------------------------
if (!self->client_encoding ||!stricmp(self->client_encoding, "UNICODE"))
{
CLIENT_ENDONG CHANGE TO UNICODE....
--------------------------------------------------------
should be(8.00.0101):
--------------------------------------------------------
if (!self->client_encoding ||stricmp(self->client_encoding, "UNICODE"))
/*WHEN CLIENT_ENCODING IS NOT UNICODE ,THEN CHANGE TO UNICODE */
{
CLIENT_ENDONG CHANGE TO UNICODE....
--------------------------------------------------------
psqlodbc8.00XX is unicode version, ODBC level is working on unicode, so ODBC must set client_encodding to unicode only when connectting, ODBC muet prevent application from setting client_encodding to other encodding, and ODBC level transfer to application level using FUNCTION "utf8-->UCS2" AND "WideCharToMultiByte"
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: trainee12@163.com
Subject: Re: UICODE SUPPORT IN 8.00.0102
In-Reply-To: <42F2D69E.000039.26598@bj163app14.163.com>
References: <42F2D69E.000039.26598@bj163app14.163.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