JDBC: Default encoding problem - Mailing list pgsql-interfaces

From Bartek Teodorczyk
Subject JDBC: Default encoding problem
Date
Msg-id 3805B1BD.2389AFDA@it.pl
Whole thread Raw
List pgsql-interfaces
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


pgsql-interfaces by date:

Previous
From: Bartek Teodorczyk
Date:
Subject: Default encoding
Next
From: "Patrick Welche"
Date:
Subject: Re: [INTERFACES] ODBC / M$Access error