X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A1A8C53EEC for ; Wed, 27 Apr 2005 11:36:59 -0300 (ADT) 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 73651-04 for ; Wed, 27 Apr 2005 14:36:56 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1B75B53ECB for ; Wed, 27 Apr 2005 11:36:55 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3REawcS022056; Wed, 27 Apr 2005 10:36:58 -0400 (EDT) To: Guillaume Cottenceau Cc: Anders Hermansen , pgsql-jdbc@postgresql.org Subject: Re: ERROR: could not convert UTF-8 character 0x00ef to ISO8859-1 possiblesolution In-reply-to: <873btccqgw.fsf@meuh.mnc.ch> References: <426E685F.1020600@ingenian.com> <87d5sgecyi.fsf@meuh.mnc.ch> <20050427104944.GB25361@online.no> <87y8b4cv7j.fsf@meuh.mnc.ch> <20050427115434.GB30285@online.no> <873btccqgw.fsf@meuh.mnc.ch> Comments: In-reply-to Guillaume Cottenceau message dated "27 Apr 2005 15:13:35 +0200" Date: Wed, 27 Apr 2005 10:36:58 -0400 Message-ID: <22055.1114612618@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/181 X-Sequence-Number: 12788 Guillaume Cottenceau writes: > My reasoning was that if the first byte of this two-byte > sequence is 0x00 then the rule that 0xEF is first byte of a > three-byte sequence doesn't apply, since 0xEF is second byte in > the sequence. Looking at the source code, it's clear that it's reporting just the first byte of the sequence; the 00 is redundant and probably shouldn't be in the message. There seem to be two possibilities: either there is a valid 3-byte UTF8 character, which cannot be converted to LATIN1; or the alleged UTF8 data isn't really UTF8 at all. regards, tom lane