From: Oliver Jowett <oliver@opencloud.com>
To: Jerome Colombie <jcolombie@gmx.ch>
Cc: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Encoding Problem
Date: Fri, 14 Jan 2005 13:04:47 +1300
Message-ID: <41E70C9F.90106@opencloud.com> (raw)
In-Reply-To: <41E7059D.8040001@gmx.ch>
References: <41E59519.7080807@gmx.ch>
<41E59C1B.6050804@opencloud.com>
<Pine.BSO.4.56.0501121659300.24317@leary.csoft.net>
<41E7059D.8040001@gmx.ch>
Jerome Colombie wrote:
> byte[] temp = test.getBytes();
getBytes() uses the JVM's default encoding to convert from the internal
string char[] representation, which might be wrong.
More interesting is test.getBytes("UTF-8") or test.getChars() or
test.charAt(x)
-O
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: oliver@opencloud.com, jcolombie@gmx.ch, books@ejurka.com
Subject: Re: Encoding Problem
In-Reply-To: <41E70C9F.90106@opencloud.com>
References: <41E59519.7080807@gmx.ch> <41E59C1B.6050804@opencloud.com> <Pine.BSO.4.56.0501121659300.24317@leary.csoft.net> <41E7059D.8040001@gmx.ch> <41E70C9F.90106@opencloud.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