X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 94ED19FA6B1 for ; Fri, 2 Jun 2006 13:05:35 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 88829-04 for ; Fri, 2 Jun 2006 13:05:26 -0300 (ADT) X-Greylist: delayed 06:41:49.290345 by SQLgrey- Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id A94C59FA6B0 for ; Fri, 2 Jun 2006 13:05:26 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fm5sh-0001yp-RQ for pgsql-jdbc@postgresql.org; Fri, 02 Jun 2006 11:23:47 +0200 Received: from 83.145.96.118 ([83.145.96.118]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jun 2006 11:23:47 +0200 Received: from Marc.Herbert by 83.145.96.118 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 02 Jun 2006 11:23:47 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Marc Herbert Subject: Re: UTF8 Date: Fri, 02 Jun 2006 11:23:39 +0200 Lines: 25 Message-ID: References: <447FECE3.1060508@freemail.hu> <447FEF54.8030702@logix-tt.com> <447FF47C.5000901@opencloud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83.145.96.118 User-Agent: Gnus/5.1007 (Gnus v5.10.7) XEmacs/21.4 (Jumbo Shrimp, linux) Cancel-Lock: sha1:q8Q/SEeon6YB765fg00jguADf/E= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/10 X-Sequence-Number: 15290 Oliver Jowett writes: > Markus Schaber wrote: >> Hi, Bakos, >> Bakos Sandor wrote: >> >>>I get the following exception when I read a simple TXT file in Linux and >>>try to INSERT to the psql. (8.1.4) >>> >>>org.postgresql.util.PSQLException: ERROR: character 0xefbfbd of encoding >>>"UTF8" has no equivalent in "LATIN2" > I would guess that the problem is probably that when *reading* the > text file originally, the wrong encoding is being used to convert the > bytes to Java Strings. If you don't use the right encoding here, then > the Java String you end up with will be garbage. Very likely since 0xefbfbd is the... unicode "replacement character" http://www.fileformat.info/info/unicode/char/fffd/index.htm Try printing this file from Java for debugguing.