From: Oliver Jowett <oliver@opencloud.com>
To: Mirco Attocchi <amirco@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC CharSet with SQL_ASCII
Date: Thu, 14 Jan 2010 22:51:47 +1300
Message-ID: <4B4EE933.4090706@opencloud.com> (raw)
In-Reply-To: <d7150a321001140038m10dfdec7j95f72115d2568746@mail.gmail.com>
References: <d7150a321001140038m10dfdec7j95f72115d2568746@mail.gmail.com>
Mirco Attocchi wrote:
> Hi All,
> I'm newest to this list (sorry for my bad english).
> I've a question about charset with jdbc.
> I've verified that my customer postgresql database is configured in
> SQL_ASCII but when I read data I receive strange chars in some fields.
>
> Do you know how I can determinate the right character set?
Well, the problem with SQL_ASCII is exactly that - there is no
information about what encoding should be used to interpret the data.
You will have to inspect the data stored in the database by hand and
work out what encoding it is actually using. Then you should probably
convert the database to use UNICODE or another appropriate encoding.
-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, amirco@gmail.com
Subject: Re: JDBC CharSet with SQL_ASCII
In-Reply-To: <4B4EE933.4090706@opencloud.com>
References: <d7150a321001140038m10dfdec7j95f72115d2568746@mail.gmail.com> <4B4EE933.4090706@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