Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6BB171337B3E for ; Mon, 4 Apr 2011 10:19:03 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 95522-01 for ; Mon, 4 Apr 2011 13:18:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 2E5161337A5D for ; Mon, 4 Apr 2011 10:18:51 -0300 (ADT) Received: (qmail 23377 invoked by uid 512); 4 Apr 2011 13:18:47 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 4 Apr 2011 13:18:47 -0000 Received: from unknown (HELO ?192.168.24.54?) (183.76.23.68) by sd.tpf.co.jp with SMTP; 4 Apr 2011 13:18:47 -0000 Message-ID: <4D99C535.7030704@tpf.co.jp> Date: Mon, 04 Apr 2011 22:18:45 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; ja; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: Josef Springer CC: pgsql-odbc@postgresql.org Subject: Re: 08.02.04.00 Updating column with Unicode References: <4D985F14.7050108@joops.com> In-Reply-To: <4D985F14.7050108@joops.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/4 X-Sequence-Number: 10632 (2011/04/03 20:50), Josef Springer wrote: > Hello everybody, > > I have detected some strange behavior updating columns with Unicodes > strings. > > Environment: > PostgreSQL 8.2.5 > Database encoding: UTF8 > ODBC: PostgreSQL Unicode Version 08.02.04.00 > > I am updating via ODBC a column (character varying nnn) of a record to > an unicoded string. > > Updating by using the command as one parameterblock > 'UPDATE adresse SET company = ''Seifert und Partner KG € 文件'' WHERE id > = 1' > works right. (the whole parameterblock is encoded to UTF8) > > Updating the record by using the command 'UPDATE adresse SET company=? > WHERE record.id=?' > and providing the arguments for ? UTF8-encoded in an extra buffer > destroys the columns content. > > If i update the column with an UTF8 encoded character in the default > range (the EURO Sign €), it works. > > Can anybody give me some hints ? How do you bind the parameters? regards, Hiroshi Inoue