Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 409A44766EF for ; Thu, 9 May 2002 12:50:56 -0400 (EDT) Received: from sifl.squaretrade.com (sifl.squaretrade.com [216.136.185.76]) by postgresql.org (Postfix) with ESMTP id 822194763DF for ; Thu, 9 May 2002 12:44:40 -0400 (EDT) Received: from olly.squaretrade.com ([216.136.185.66] helo=berik) by sifl.squaretrade.com with smtp (Exim 3.34 #1 (Debian)) id 175r1u-000230-00 for ; Thu, 09 May 2002 09:44:34 -0700 From: "Ryan Chambers" To: Subject: Re: Encoding Date: Thu, 9 May 2002 09:47:07 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C1F73E.7B93EE90" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 In-reply-to: X-Archive-Number: 200205/50 X-Sequence-Number: 3874 This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C1F73E.7B93EE90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit I've had problems like this too, but it was an OS issue. Basically, the default character set for Solaris is ASCII, but our data was all ISO-8859-1. This was causing the ? corruptions that you mention. This was solved by adding the following commands to the shell script I use to run the java application: LC_CTYPE=iso_8859_1 export LC_CTYPE I don't know if this can be of any use to you, though. Good luck. Ryan -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Thomas De Vos Sent: Wednesday, May 08, 2002 9:49 AM To: ThomasDeVos@it-enterprise.co.uk; pgsql-jdbc-owner@postgresql.org Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Encoding Hiya, The problem seems to be solved. Added debugging information in the Postgres Driver and at the end after several tests I was able to conclude that it didn't has anything to do with the driver. So I wrote a few sample apps. (reading - writing from file with extended character set in it) and it was the BlackDown JVM who behaves very strange and also the Sun's JVM seems to behave very strange and translate (converts) these characters into "?". Only the IBM's JVM seems to work fine. The OS is Debian Linux with Blackdown JVM who gave me a few nights without rest!!!! Thomas De Vos [Thomas De Vos] -----Original Message----- From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Thomas De Vos Sent: 06 May 2002 20:58 To: pgsql-jdbc-owner@postgresql.org Cc: pgsql-jdbc@postgresql.org; ThomasDeVos@it-enterprise.co.uk Subject: [JDBC] Encoding Hiya, I was 2 months ago using the sourceforge JDBC driver on WinNt as client and HP-UX as server (so PostgresQl) server. At time I had problems with the extented ASII set, all the characters were converted to "?". So I switched to the org.postgresql.Driver and problem seems to be solved. Now 2 months later we have to go into production and the target OS is Debian Linux for client and server. And guess what I can see the same problem, all characters belonging to the extented set are converted to "?". I have written a small testprogram, create one connection and tries to insert data with Java and JDBC. This seems not to work. But .... if I insert data with psql -h ... -f insertcommandfile.sql and look then in the database then there is no problem at all. Extented Characters are inserted. So I suppose the Db is correctly configured. (eg client-encoding and server encoding). I have seen that ages ago the JDBC driver had problems with encoding but this was solved I thought. I'm testing with this character: é, but also other characters has the same problem. I need help .... Real help ... Kind regards, Thomas De Vos IT Enterprise Ltd Phone: 00 44 (0)127 650 5385 Mobile: 00 44 (0)777 990 7717 ThomasDeVos@it-enterprise.co.uk ------=_NextPart_000_000B_01C1F73E.7B93EE90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
I've=20 had problems like this too, but it was an OS issue. Basically, the default= =20 character set for Solaris is ASCII, but our data was all ISO-8859-1. This w= as=20 causing the ? corruptions that you mention.
 
This=20 was solved by adding the following commands to the shell script I use to ru= n the=20 java application:
 

LC_CTYPE=3Diso_8859_1

export LC_CTYPE

 

I don't=20 know if this can be of any use to you, though. Good luck.

Ryan

 

-----Original Message-----
From:=20 pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]<= B>On=20 Behalf Of Thomas De Vos
Sent: Wednesday, May 08, 2002 9:49= =20 AM
To: ThomasDeVos@it-enterprise.co.uk;=20 pgsql-jdbc-owner@postgresql.org
Cc:=20 pgsql-jdbc@postgresql.org
Subject: Re: [JDBC]=20 Encoding

Hiya,
 
The=20 problem seems to be solved. Added debugging information in the Postgres D= river=20 and at the end after several tests I was able to conclude that it didn't = has=20 anything to do with the driver.
So I=20 wrote a few sample apps. (reading - writing from file with extended chara= cter=20 set in it) and it was the BlackDown JVM who behaves very strange and also= the=20 Sun's JVM seems to behave very strange and translate (converts) these=20 characters into "?".
Only=20 the IBM's JVM seems to work fine.
 
The=20 OS is Debian Linux with Blackdown JVM who gave me a few nights without=20 rest!!!!
 
Thomas De Vos

[Thomas De= =20 Vos]  -----Original Message-----
From:= =20 pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]<= B>On=20 Behalf Of Thomas De Vos
Sent: 06 May 2002 20:58
To:=20 pgsql-jdbc-owner@postgresql.org
Cc: pgsql-jdbc@postgresql.org;= =20 ThomasDeVos@it-enterprise.co.uk
Subject: [JDBC]=20 Encoding

Hiya,
 
I was= 2 months=20 ago using the sourceforge JDBC driver on WinNt as client and HP-UX as s= erver=20 (so PostgresQl) server. At time I had problems with the extented ASII s= et,=20 all the characters were converted to "?". So I switched to the=20 org.postgresql.Driver and problem seems to be solved.
Now 2= months=20 later we have to go into production and the target OS is Debian Linux f= or=20 client and server. And guess what I can see the same problem, all chara= cters=20 belonging to the extented set are converted to "?".
 
I hav= e written a=20 small testprogram, create one connection and tries to insert data with = Java=20 and JDBC. This seems not to work. But .... if I insert data with psql -= h ...=20 -f insertcommandfile.sql and look then in the database then there is no= =20 problem at all. Extented Characters are inserted. So I suppose the Db i= s=20 correctly configured. (eg client-encoding and server encoding).=20
I hav= e seen that=20 ages ago the JDBC driver had problems with encoding but this was solved= I=20 thought.
I'm t= esting with=20 this character: =E9,=20 but also other characters has the same problem.
 
I=20 need help .... Real help ...
 

Kind regards,

Thomas De Vos
IT Enterprise= =20 Ltd
Phone:  00 44 (0)127 650 5385
Mobile: 00 44 (0)777 990= =20 7717
ThomasDeVos@it-enterpri= se.co.uk

 

 
------=_NextPart_000_000B_01C1F73E.7B93EE90--