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 GAA18817 for ; Thu, 14 Oct 1999 06:31:23 -0400 (EDT) (envelope-from barteo@ipartners.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 MAA16473 for ; Thu, 14 Oct 1999 12:31:21 +0200 (CEST) (envelope-from barteo@ipartners.pl) Received: from ipartners.pl (rupia.it.pl [157.25.192.2]) by zloty.it.com.pl with ESMTP id MAA28713 for ; Thu, 14 Oct 1999 12:31:21 +0200 (MET DST) Sender: root@zloty.it.com.pl Message-ID: <3805B017.6A755ECF@ipartners.pl> Date: Thu, 14 Oct 1999 12:27:35 +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: Default encoding 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