Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 17F889FA182 for ; Tue, 12 Dec 2006 23:29:35 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 77245-09 for ; Tue, 12 Dec 2006 23:29:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 3A65F9F9C35 for ; Tue, 12 Dec 2006 23:29:29 -0400 (AST) Received: (qmail 2969 invoked from network); 13 Dec 2006 12:29:27 +0900 Received: from unknown (HELO ?100.0.32.170?) (100.0.32.170) by sd2.tpf-fw-c.co.jp with SMTP; 13 Dec 2006 12:29:27 +0900 Message-ID: <457F7397.8000404@tpf.co.jp> Date: Wed, 13 Dec 2006 12:29:27 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: bartek@mikronika.com.pl CC: pgsql-odbc@postgresql.org Subject: Re: Invalid byte sequence for encoding "UTF8": 0xa1 - when References: <16562.192.168.3.191.1165937037.squirrel@www2> In-Reply-To: <16562.192.168.3.191.1165937037.squirrel@www2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/56 X-Sequence-Number: 8503 bartek@mikronika.com.pl wrote: > Invalid byte sequence for encoding "UTF8": 0xa1 - when insert data into > bytea. > > PostgreSQL: 8.1.5 > Driver: psqlodbc-08.01.0200 > Database in UTF-8. > Local encoding: LC_ALL=pl_PL.ISO-8859-2 > > In " convert_to_pgbinary" : > isalnum(0xa1) return true for pl_PL.ISO-8859-2 but it isn't ascii > character Looking at the manual page I found it can be true. > and should be convert to octal. I would take care of it. Thanks. regards, Hiroshi Inoue