From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Small problem with special characters
Date: Sun, 20 Aug 2006 14:17:14 +0200
Message-ID: <ec9jsb$v5e$1@sea.gmane.org> (raw)
Hello,
I'm having a small problem with inserting german umlauts. The PG database was
created with the default code page (by accident) and thus ended up with 'WIN1251'.
Now from within a Java program I'm trying to insert a value into the database
that contains the character 'รถ'. Now when doing that, the JDBC driver throws an
error:
character 0xc3b6 of encoding "UTF8" has no equivalent in "WIN1251" [SQL
State=22P05]
What I don't understand, is that this character is contained in the windows code
page. The value itself is retrieved from a JDBC connection to a HSQLDB database,
so the string handling is Java internal only.
I can convert the database to UTF8 that is not the problem, the main reason I'm
writing, is that I'd like to understand what is going on here.
Does this mean, that I can only access UTF8 enabled databases with the JDBC driver?
Thanks
Thomas
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: spam_eater@gmx.net
Subject: Re: Small problem with special characters
In-Reply-To: <ec9jsb$v5e$1@sea.gmane.org>
References: <ec9jsb$v5e$1@sea.gmane.org>
* 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