From: John R Pierce <pierce@hogranch.com>
To: Joao.Pires@iscte.pt
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PostgreSQL JDBC Driver versus Encoding
Date: Fri, 19 Oct 2007 17:18:16 -0700
Message-ID: <47194948.7070603@hogranch.com> (raw)
In-Reply-To: <004301c812a1$7a8ee980$dc4c0a0a@ci.iscte.intranet>
References: <004301c812a1$7a8ee980$dc4c0a0a@ci.iscte.intranet>
João Paulo Pires wrote:
>
> Hello,
>
>
>
> I have a PostgreSQL database which encoding is SQL_ASCII.
>
> I inserted information into that database from a MySQL database, using
> Java code, which encoding is UTF-8, and the information in the
> destination database has some strange characters related with encoding
> problems.
>
>
>
> There is any additional parameter that we can consider in the
> PostrgreSQL connection string to deal with those problems?
>
> The problem should be related with the encoding used to connect to
> MySQL database?
>
>
>
you can't encode all symbols in UTF-8 with simple ASCII. Symbols that
are the same will translate but ASCII only has 200 or so glyphs. you'll
need to convert the database to UTF-8, then redo your inserts.
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: pierce@hogranch.com, Joao.Pires@iscte.pt
Subject: Re: PostgreSQL JDBC Driver versus Encoding
In-Reply-To: <47194948.7070603@hogranch.com>
References: <004301c812a1$7a8ee980$dc4c0a0a@ci.iscte.intranet> <47194948.7070603@hogranch.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