db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernt M. Johnsen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Commented: (DERBY-525) getAsciiStreamshould replace non-ASCII characters with 0x3f, '?' to match embedded
Date Thu, 22 Sep 2005 10:37:29 GMT
    [ http://issues.apache.org/jira/browse/DERBY-525?page=comments#action_12330185 ] 

Bernt M. Johnsen commented on DERBY-525:

In my opinion ASCII (and ISO-646) is a 7-bit standard which is compatible with Unicode values
0x0000-0x007f. Unicode values 0x0000-0x00ff are compatible with ISO-8859-1 which to my knowledge
is not compatible with any of the (non-standard) "extended" ASCII charactersets which have
been in use. 

> getAsciiStreamshould replace non-ASCII characters with 0x3f, '?'  to match embedded
> -----------------------------------------------------------------------------------
>          Key: DERBY-525
>          URL: http://issues.apache.org/jira/browse/DERBY-525
>      Project: Derby
>         Type: Bug
>   Components: Network Client
>     Versions:,,
>     Reporter: Kathey Marsden
>     Assignee: Tomohito Nakayama

> When calling Clob.getAsciiStream or ResultSet.getAsciiStream if 
> the column type is a character type or a CLOB, then any out of 
> range character (to the ASCII set) needs to be replaced by 0x3f 
> ('?', question mark). ASCII is defined as 8 bit characters, 
> thus Unicode Characters in the range 0x0000 to 0x00ff are 
> mapped to ASCII characters 0x00 to 0xff, and Unicode characters 
> in the range 0x0100 to 0xffff are mapped to 0x3f
> By code inspection:
> client code in 
> org.apache.derby.client.am.ResultSet
> embedded in 
> org.apache.derby.impl.jdbc.ReaderToAscii

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message