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 7BF548B9CF2 for ; Mon, 7 Feb 2005 07:04:22 +0000 (GMT) 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 04606-02 for ; Mon, 7 Feb 2005 07:04:14 +0000 (GMT) Received: from moonfactory.co.jp (0.moonfactory.co.jp [211.5.120.193]) by svr1.postgresql.org (Postfix) with ESMTP id EA74A8B9B7D for ; Mon, 7 Feb 2005 07:04:11 +0000 (GMT) Received: from benjamindon (192.168.133.146) by moonfactory.co.jp with ESMTP (Eudora Internet Mail Server 3.0.3) for ; Mon, 7 Feb 2005 16:04:09 +0900 Message-ID: <002501c50ce3$37edad80$9285a8c0@moonfactory.co.jp> From: "Layet Benjamin" To: Subject: ODBC & character encoding Date: Mon, 7 Feb 2005 16:04:07 +0900 Organization: Moonfactory MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0021_01C50D2E.A7142860" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.087 tagged_above=0 required=5 tests=HTML_40_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200502/23 X-Sequence-Number: 4913 This is a multi-part message in MIME format. ------=_NextPart_000_0021_01C50D2E.A7142860 Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: 7bit Hi, I am trying to run a query from .Net C# using ODBC on a Postgres 7.1 Database. The database encoding is EUC_JP. And as I use .Net the default encoding is UTF8. My problem is that the 7.1 version does not support to set the client encoding to UTF8 : Here is the ODBC error log: [ Client encoding = 'EUC_JP' (code = 1) ] conn=105462528, query='set client_encoding to 'UTF8'' ERROR from backend during send_query: 'ERROR: Client encoding UTF8 is not supported' So when I insert Data, the japanese characters don't appear properly.... The database is running for a production server and I cannot stop the service at all... Not to mention upgrading... So my question is : - Can the ODBC driver convert the query string from UTF8 to EUC_JP before sending it to the database server ? and how ? I hope you understand my problem and my question... Any help would be extremely appreciated, Benjamin ------=_NextPart_000_0021_01C50D2E.A7142860 Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable
Hi,
I am trying to run a query from .Net C# using ODBC on a = Postgres=20 7.1 Database.
 
The database encoding is EUC_JP.
And as I use .Net the default encoding is UTF8.
 
My problem is that the 7.1 version does not support to set the = client=20 encoding to UTF8 :
Here is the ODBC error log:
<code>
[ Client encoding =3D 'EUC_JP' (code =3D 1) ]
conn=3D105462528, = query=3D'set=20 client_encoding to 'UTF8''
ERROR from backend during send_query:=20 'ERROR:  Client encoding UTF8 is not supported'
</code>
 
So when I insert Data, the japanese characters don't appear=20 properly....
The database is running for a production server and I cannot stop = the=20 service at all... Not to mention upgrading...
 
 
So my question is :
 - Can the ODBC driver convert the query string from UTF8 to = EUC_JP=20 before sending it to the database server ?
and how ?
 
I hope you understand my problem and my question...
Any help would be extremely appreciated,
Benjamin
 
------=_NextPart_000_0021_01C50D2E.A7142860--