pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
JDBC: Default encoding problem
2+ messages / 2 participants
[nested] [flat]

* JDBC: Default encoding problem
@ 1999-10-14 10:34  Bartek Teodorczyk <barteo@it.pl>
  0 siblings, 0 replies; 2+ messages in thread

From: Bartek Teodorczyk @ 1999-10-14 10:34 UTC (permalink / raw)
  To: 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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* RE: [INTERFACES] JDBC: Default encoding problem
@ 1999-10-14 12:23  Peter Mount <petermount@it.maidstone.gov.uk>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Mount @ 1999-10-14 12:23 UTC (permalink / raw)
  To: 'Bartek Teodorczyk' <barteo@it.pl>; pgsql-interfaces; +Cc: Peter Mount (Home) <peter@retep.org.uk>

It would be a bad idea to modify PG_Stream, as this will affect the
LargeObject support which must be kept binary.

Also, what version of the driver are you using, as there has been a lot
of changes recently.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council.



-----Original Message-----
From: Bartek Teodorczyk [mailto:barteo@it.pl]
Sent: 14 October 1999 11:35
To: pgsql-interfaces@postgreSQL.org
Subject: [INTERFACES] JDBC: Default encoding problem


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

************



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~1999-10-14 12:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-10-14 10:34 JDBC: Default encoding problem Bartek Teodorczyk <barteo@it.pl>
1999-10-14 12:23 RE: [INTERFACES] JDBC: Default encoding problem Peter Mount <petermount@it.maidstone.gov.uk>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox