pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Emmanuel Guiton <emmanuel.guiton@intrinsec.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
Date: Thu, 11 Mar 2010 01:17:02 +1300
Message-ID: <4B978DBE.8090506@opencloud.com> (raw)
In-Reply-To: <4B977FFF.9030204@intrinsec.com>
References: <4B977FFF.9030204@intrinsec.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <4B978DBE.8090506@opencloud.com>
Permalink:  ../4B978DBE.8090506@opencloud.com/
Also on:    postgresql.org/message-id/4B978DBE.8090506@opencloud.com

 · 

reply

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, emmanuel.guiton@intrinsec.com
  Subject: Re: JDBC driver, client_encoding and a SQL_ASCII database in production
  In-Reply-To: <4B978DBE.8090506@opencloud.com>
  References: <4B977FFF.9030204@intrinsec.com> <4B978DBE.8090506@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