pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bakos Sandor <dr_saca@freemail.hu>
To: pgsql-jdbc@postgresql.org
Subject: Re: UTF8
Date: Fri, 02 Jun 2006 19:27:42 +0200
Message-ID: <4480750E.9000900@freemail.hu> (raw)
In-Reply-To: <khjfyinj4h0.fsf@meije.emic.fr>
References: <447FECE3.1060508@freemail.hu>
	<447FEF54.8030702@logix-tt.com>
	<447FF47C.5000901@opencloud.com>
	<khjfyinj4h0.fsf@meije.emic.fr>

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 <oliver@opencloud.com> 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
>
>
>  




view thread (7+ messages)

Message-ID: <4480750E.9000900@freemail.hu>
Permalink:  ../4480750E.9000900@freemail.hu/
Also on:    postgresql.org/message-id/4480750E.9000900@freemail.hu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: dr_saca@freemail.hu
  Subject: Re: UTF8
  In-Reply-To: <4480750E.9000900@freemail.hu>
  References: <447FECE3.1060508@freemail.hu> <447FEF54.8030702@logix-tt.com> <447FF47C.5000901@opencloud.com> <khjfyinj4h0.fsf@meije.emic.fr> <4480750E.9000900@freemail.hu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox