From: Markus Schaber <schabi@logix-tt.com>
To: Bakos Sandor <dr_saca@freemail.hu>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: UTF8
Date: Fri, 02 Jun 2006 09:57:08 +0200
Message-ID: <447FEF54.8030702@logix-tt.com> (raw)
In-Reply-To: <447FECE3.1060508@freemail.hu>
References: <447FECE3.1060508@freemail.hu>
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"
This meas that your database is encoded in ISO-LATIN2 charset, and psql
is telling the server the data it sends is UTF-8. The server tries to
convert the UTF-8 Data into LATIN2, but there is a character (whose
UTF8-Sequence is 0xefbfbd) that is not contained in LATIN-2.
Either your file is latin-2 in reality (or even another charset), then
you should tell psql to use the latin-2 encoding.
Or your file really is utf-8, and really contains characters not
contained in latin-2. Then you have two possibilities: Edit the file and
replace those characters with some transcription, or convert your
database to utf-8 encoding (needs a dump&restore).
HTH,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
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: schabi@logix-tt.com, dr_saca@freemail.hu
Subject: Re: UTF8
In-Reply-To: <447FEF54.8030702@logix-tt.com>
References: <447FECE3.1060508@freemail.hu> <447FEF54.8030702@logix-tt.com>
* 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