pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tatsuo Ishii <t-ishii@sra.co.jp>
To: Martin Kuba <makub@inet.cz>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] JDBC driver should use database encoding
Date: Sun, 16 May 1999 10:48:26 +0900
Message-ID: <199905160148.KAA00897@ext16.sra.co.jp> (raw)
In-Reply-To: <373C406C.D5DCB492@inet.cz>

> Postgres 6.4.2 has multibyte support, so database can be
> in one of several encodings. But the JDBC driver uses
> for fetching data this method:
>  
> src/interfaces/jdbc/postgresql/ResultSet.java line 164:
> return new String(this_row[columnIndex - 1]);
> 
> It means that not the database internal encoding, but 
> the default encoding of client JVM will be used for
> converting 8-bit characters to 16-bit UNICODE characters.
> 
> In postgres 6.5beta is the same code, so I think next
> release will have the same bug.
> 
> Is it difficult to get the database encoding and use
> it for converting bytes to Strings ? Is anybody planning
> to do it ? If not, how can I do it ?

Here in Japan we already have such a patch (for 6.4.2). I belive it
can be used for any language, but I will ask the author of the patch
to make sure that.
---
Tatsuo Ishii




view thread (4+ messages)  latest in thread

Message-ID: <199905160148.KAA00897@ext16.sra.co.jp>
Permalink:  ../199905160148.KAA00897@ext16.sra.co.jp/
Also on:    postgresql.org/message-id/199905160148.KAA00897@ext16.sra.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: t-ishii@sra.co.jp, makub@inet.cz
  Subject: Re: [INTERFACES] JDBC driver should use database encoding
  In-Reply-To: <199905160148.KAA00897@ext16.sra.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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