X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A1B4BD7969 for ; Thu, 3 Nov 2005 06:03:09 -0400 (AST) 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 92584-04 for ; Thu, 3 Nov 2005 10:03:04 +0000 (GMT) Received: from web30512.mail.mud.yahoo.com (web30512.mail.mud.yahoo.com [68.142.201.240]) by svr1.postgresql.org (Postfix) with SMTP id BFA59D76A5 for ; Thu, 3 Nov 2005 06:03:05 -0400 (AST) Received: (qmail 88358 invoked by uid 60001); 3 Nov 2005 10:03:06 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4biWoiMACx/lFIYc64eHh/iu9Yy1EMvAjsuUWd3sqlKd6YDo795ol7urnrWCXNzZLR4GCZmx1oeWiPGrVehwDCoSAd0QoPS3RmJmU6W70q9wfHQQLFsXOkOFoWGMJ6n1QS/pziIr/yMfiJNyF61ubk/dfXjqlVCg6nYzBNZCV0c= ; Message-ID: <20051103100306.88356.qmail@web30512.mail.mud.yahoo.com> Received: from [210.177.88.54] by web30512.mail.mud.yahoo.com via HTTP; Thu, 03 Nov 2005 02:03:06 PST Date: Thu, 3 Nov 2005 02:03:06 -0800 (PST) From: Mimi Siu Subject: Problem with Chinese characters To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.479 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.479 X-Spam-Level: X-Archive-Number: 200511/16 X-Sequence-Number: 6253 Hi: I am using psqlodbc-08-00-0102 ODBC driver on my Windows 2000 machine and want to insert data (with chinese characters) to the postgresql 8.0.3 running on RH9. My database is encoded as UNICODE, and my sql statement is already converted to UTF-8 before calling SQLExecute(). But I found that the coding of the chinese characters is not UTF-8 in the postgresql database. Also if I insert the record with 10 chinese characters, the length of the field should be 10, but now it is 30. It was previously work when I use the psqlodbc-07-02-01 driver with postgresql 7.3. Thanks a lot! __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com