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 713F5D8C90 for ; Fri, 4 Nov 2005 06:02:23 -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 85237-01 for ; Fri, 4 Nov 2005 10:02:20 +0000 (GMT) X-Greylist: delayed 00:06:40.451111 by SQLgrey- Received: from web30501.mail.mud.yahoo.com (web30501.mail.mud.yahoo.com [68.142.200.114]) by svr1.postgresql.org (Postfix) with SMTP id BB53CD8C85 for ; Fri, 4 Nov 2005 06:02:21 -0400 (AST) Received: (qmail 54770 invoked by uid 60001); 4 Nov 2005 09:55:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DHbK3LVB+Z0BlPPdPv8rAV8juMd6brDw98a0c/wIgUfmTJGgyZsy7UnyXiWuzEH3XcH9e5X0pjFyVYaVaoEm3YHOx65NB88oTPUa753zYVSfILh4LxLBQxlStBnnDIW10VqQO0DTUwlD35jSprK3HtEnSLjGDMeWE6PQ6HXFLlc= ; Message-ID: <20051104095542.54768.qmail@web30501.mail.mud.yahoo.com> Received: from [210.177.88.54] by web30501.mail.mud.yahoo.com via HTTP; Fri, 04 Nov 2005 01:55:42 PST Date: Fri, 4 Nov 2005 01:55:42 -0800 (PST) From: Mimi Siu Subject: Re: Problem with Chinese characters To: pgsql-odbc@postgresql.org In-Reply-To: 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.359 required=5 tests=[AWL=-0.120, DNS_FROM_RFC_ABUSE=0.479] X-Spam-Score: 0.359 X-Spam-Level: X-Archive-Number: 200511/46 X-Sequence-Number: 6283 Hello: I would like to use ANSI ODBC driver as my sql statement is already converted to UTF-8 before calling SQLExecute(). However, i found from the log file that the client encoding is BIG5 which is my system's locale, so the text is wrong when it is inserted to my UNICODE database. Can I set the client encoding to UTF8 in my DNS or through any ODBC functions?? Thanks a lot! --- Dave Page wrote: > > > > -----Original Message----- > > From: pgsql-odbc-owner@postgresql.org > > [mailto:pgsql-odbc-owner@postgresql.org] On Behalf > Of Mimi Siu > > Sent: 03 November 2005 10:03 > > To: pgsql-odbc@postgresql.org > > Subject: [ODBC] Problem with Chinese characters > > > > 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. > > Please try the latest snapshot - 08.01.0005. It has > various fixes and > can be compiled in Unicode or ANSI/Multibyte mode as > the older 07.xx > drivers could (08.00.xxxx was Unicode only). > > Regards, Dave > __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com