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 99F489FA220 for ; Fri, 2 Jun 2006 14:27:57 -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 97452-10 for ; Fri, 2 Jun 2006 14:27:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from medcfs.hu (246-137.fixip.pool.ew.hu [212.108.246.137]) by postgresql.org (Postfix) with ESMTP id 5A7919FA0E5 for ; Fri, 2 Jun 2006 14:27:48 -0300 (ADT) Received: from [192.168.1.4] (saca.intra.medcfs.hu [192.168.1.4]) by medcfs.hu (Postfix) with ESMTP id B5E137D8D5 for ; Fri, 2 Jun 2006 19:31:54 +0200 (CEST) Message-ID: <4480750E.9000900@freemail.hu> Date: Fri, 02 Jun 2006 19:27:42 +0200 From: Bakos Sandor User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: UTF8 References: <447FECE3.1060508@freemail.hu> <447FEF54.8030702@logix-tt.com> <447FF47C.5000901@opencloud.com> In-Reply-To: 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: 200606/11 X-Sequence-Number: 15291 Hi ! I set the character encoding in the InputStreamReader in my program and it seem this is resolve my problem. So thx for all the help. Saca Marc Herbert wrote: >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. > > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: Don't 'kill -9' the postmaster > > >