Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5632E632A15 for ; Wed, 10 Mar 2010 07:40:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 06710-01-3 for ; Wed, 10 Mar 2010 11:39:55 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from smtp4.intrinsec.com (smtp4.Intrinsec.com [194.6.240.34]) by mail.postgresql.org (Postfix) with ESMTP id A0E2E636366 for ; Wed, 10 Mar 2010 07:39:47 -0400 (AST) Received: from ISC-SRV-EXC02.intrinsec.neurones.sa (nsa-srv-fw.intrinsec.com [10.254.0.1]) by smtp4.intrinsec.com (Postfix) with ESMTP id 867BF49516 for ; Wed, 10 Mar 2010 12:18:36 +0100 (CET) thread-index: AcrAQ2gR7/4XUU/+RP6qXfljT81y5g== Received: from [192.168.2.76] (192.168.2.76) by ISC-SRV-EXC02.Intrinsec.neurones.sa (192.168.2.10) with Microsoft SMTP Server id 8.2.213.0; Wed, 10 Mar 2010 12:18:27 +0100 Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6002.18005 Message-ID: <4B977FFF.9030204@intrinsec.com> Date: Wed, 10 Mar 2010 12:18:23 +0100 From: Emmanuel Guiton User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Subject: JDBC driver, client_encoding and a SQL_ASCII database in production Content-Type: text/plain; format=flowed; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=-10 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201003/28 X-Sequence-Number: 20368 Hello All, I am using Pentaho Data Integration (PDI) to transform a database in=20 production to some other database, correctly structured for my business=20 intelligence analysis purpose. PDI uses the JDBC driver to perform the transformation. The issue is=20 that JDBC only works with UTF-8 as client_encoding while the charset of=20 the database in production is SQL_ASCII and was filled with ISO-8859-1=20 characters (and is full of characters such as =C3=A9 =C3=A8 =C3=B4 ...). = The only way I=20 can get the correct string back is to use client_encoding=3D'LATIN1'. Changing the character set of the original database is not an option as=20 it is in production. Anyone has a good idea on how could I proceed to get correctly the = content ? Regards, - Emmanuel --=20 Ing=C3=A9nieur =C3=A9tude et d=C3=A9veloppement Intrinsec 215, avenue Georges Clemenceau 92000 Nanterre http://www.intrinsec.com =20 Emmanuel GUITON Ing=C3=A9nieur d=C3=A9veloppement=20 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.= pdf http://www.intrinsec.com/ =20