Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 624B84766B1; Wed, 8 May 2002 13:45:40 -0400 (EDT) Received: from eurus.host4u.net (eurus.host4u.net [216.71.64.71]) by postgresql.org (Postfix) with ESMTP id 5B7EF47653B; Wed, 8 May 2002 12:57:59 -0400 (EDT) Received: from tiger ([63.137.144.8]) by eurus.host4u.net (8.11.6/8.11.6) with ESMTP id g48GrrW20244; Wed, 8 May 2002 11:53:53 -0500 Reply-To: From: "Thomas De Vos" To: , Cc: Subject: Re: Encoding Date: Wed, 8 May 2002 17:48:44 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_016B_01C1F6B8.98C57FA0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-reply-to: Importance: Normal X-Archive-Number: 200205/45 X-Sequence-Number: 3869 This is a multi-part message in MIME format. ------=_NextPart_000_016B_01C1F6B8.98C57FA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit 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_016B_01C1F6B8.98C57FA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hiya,
 
The=20 problem seems to be solved. Added debugging information in the Postgres Dri= ver=20 and at the end after several tests I was able to conclude that it didn't ha= s=20 anything to do with the driver.
So I=20 wrote a few sample apps. (reading - writing from file with extended charact= er=20 set in it) and it was the BlackDown JVM who behaves very strange and also t= he=20 Sun's JVM seems to behave very strange and translate (converts) these chara= cters=20 into "?".
Only=20 the IBM's JVM seems to work fine.
 
The OS=20 is Debian Linux with Blackdown JVM who gave me a few nights without=20 rest!!!!
 
Thomas=20 De Vos

[Thomas De=20 Vos]  -----Original Message-----
From:=20 pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org]= 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 ago=20 using the sourceforge JDBC driver on WinNt as client and HP-UX as server = (so=20 PostgresQl) server. At time I had problems with the extented ASII set, al= l the=20 characters were converted to "?". So I switched to the org.postgresql.Dri= ver=20 and problem seems to be solved.
Now 2 m= onths later=20 we have to go into production and the target OS is Debian Linux for clien= t and=20 server. And guess what I can see the same problem, all characters belongi= ng to=20 the extented set are converted to "?".
 
I have = written a=20 small testprogram, create one connection and tries to insert data with Ja= va=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 is= =20 correctly configured. (eg client-encoding and server encoding).=20
I have = seen that=20 ages ago the JDBC driver had problems with encoding but this was solved I= =20 thought.
I'm tes= ting 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-enterprise= .co.uk

 

 
------=_NextPart_000_016B_01C1F6B8.98C57FA0--