db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: [jira] Commented: (DERBY-525) getAsciiStreamshould replace non-ASCII characters with 0x3f, '?' to match embedded
Date Thu, 22 Sep 2005 19:03:05 GMT
TomohitoNakayama wrote:

> Hello.
> 
> 
> I found what Dan told at page C-184 in specification of JDBC 3.0 .
> 
> 
> As our discussion shows, difference between ASCII and ISO-8859-1  seems
> to be very confusing .
> 
> It is not surprising user of derby misunderstand ASCII and ISO-8859-1 ,
> and call "correctly" getAsciiStream as "getISO8859_1Stream()" .
> I think changing behavior of getAsciiStream() would cause confusion
> application programs relying on current behavior .
> So I think we should keep current behavior .
> 
> // In my personal feeling , I feel some kind of solidarity ....
> // Many engeneers in Japan , who MUST use character outside 0x0000 -
> 0x00ff ,  often be troubled with character encoding problem .
> // Even engeneers , who only use character inside 0x0000 - 0x00ff , can
> be troubled ...
> // I think Experienced Japanese engeneer would not surprise so much
> finding this kind of behavior .
> // It's just everyday experience to be troubled with character encoding
> problem  ;_; ( Japanese smiley of crying :) ) .
> 
> Well ...  difficulty in encoding characters is World Wide Problem ...
> 
> 
> It may be better to record about this information .
> 
> Adding information at
> http://db.apache.org/derby/papers/JDBCImplementation.html#GetAsciiStream%28%29
> would make paper gloomy .

The easy solution is for applications not to use the getAsciiStream
method. Any application that wants to stream character values should be
using getCharacterStream, UniCode based and can be converted to any
encoding using the standard Java mechanisms. Internally Derby is all
UniCode to match Java.

Not gloomy at all, just a method that's part of JDBC but not really that
useful.

Dan.


Mime
View raw message