From: Emmanuel Guiton <emmanuel.guiton@intrinsec.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date: Wed, 10 Mar 2010 14:32:25 +0100
Message-ID: <4B979F69.5090707@intrinsec.com> (raw)
In-Reply-To: <4B978DBE.8090506@opencloud.com>
References: <4B977FFF.9030204@intrinsec.com>
<4B978DBE.8090506@opencloud.com>
Oliver Jowett wrote:
> Emmanuel Guiton wrote:
>
>> Hello All,
>>
>> I am using Pentaho Data Integration (PDI) to transform a database in
>> production to some other database, correctly structured for my business
>> intelligence analysis purpose.
>> PDI uses the JDBC driver to perform the transformation. The issue is
>> that JDBC only works with UTF-8 as client_encoding while the charset of
>> the database in production is SQL_ASCII and was filled with ISO-8859-1
>> characters (and is full of characters such as é è ô ...). The only way I
>> can get the correct string back is to use client_encoding='LATIN1'.
>>
>> Changing the character set of the original database is not an option as
>> it is in production.
>>
>> Anyone has a good idea on how could I proceed to get correctly the
>> content ?
>>
>
> Take a copy of the production database, change the database encoding to
> be LATIN1, and do your conversion from that copy?
>
> -O
>
Thanks for the idea, but the volume is too heavy and performance
problems already too important on the original database to overload it
with an additional daily dump.
This is not just a one-shot issue. The analysis tool I am setting up is
made to continually analyze the activity of my company.
Would there be a way to get the binary content of text field ?
Maybe that could be the solution, performing the encoding conversion at
the application level, then.
- Emmanuel
--
Ingénieur étude et développement
Intrinsec
215, avenue Georges Clemenceau
92000 Nanterre
http://www.intrinsec.com
Emmanuel GUITON
Ingénieur développement
Standard : +33 1 41 91 77 77 l Fax : +33 1 41 91 77 78
215, avenue Georges Clemenceau l 92024 NANTERRE
http://www.intrinsec.com/img_site/content/20091216V2_Intrinsec_diversite.pdfhttp://www.intrinsec.com/
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: emmanuel.guiton@intrinsec.com
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
In-Reply-To: <4B979F69.5090707@intrinsec.com>
References: <4B977FFF.9030204@intrinsec.com> <4B978DBE.8090506@opencloud.com> <4B979F69.5090707@intrinsec.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