Received: from mr1a.ikp.pl (IDENT@mr1a.ikp.pl [157.25.5.18]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA19337 for ; Thu, 14 Oct 1999 06:38:24 -0400 (EDT) (envelope-from barteo@it.pl) Received: from zloty.it.com.pl (zloty.it.com.pl [195.94.200.4]) by mr1a.ikp.pl (8.9.1/8.9.1/MR1.0) with ESMTP id MAA18073 for ; Thu, 14 Oct 1999 12:38:23 +0200 (CEST) (envelope-from barteo@it.pl) Received: from it.pl (rupia.it.pl [157.25.192.2]) by zloty.it.com.pl with ESMTP id MAA00019 for ; Thu, 14 Oct 1999 12:38:22 +0200 (MET DST) Sender: root@zloty.it.com.pl Message-ID: <3805B1BD.2389AFDA@it.pl> Date: Thu, 14 Oct 1999 12:34:37 +0200 From: Bartek Teodorczyk X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.5 i586) X-Accept-Language: pl MIME-Version: 1.0 To: pgsql-interfaces@postgreSQL.org Subject: JDBC: Default encoding problem References: <199910141032.GAA18880@hub.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I've noticed crossplatform problem using encoding in JDBC interface. I want to use ISO8859-2 characters in my database and accessing from java interface in Windows and Linux. Default encoding in Linux is - ISO8859-2 but in Windows CP1250 and during transmission via Input/OutputStream some localized characters are truncated to '?'. I've hacked a little JDBC inteface and my proposition is to change in PG_Stream.java: 1. use InputStreamReader except InputStream 2. use BufferedWriter except BufferedOutputStream BarTeo