You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/06/22 20:15:00 UTC

[jira] [Commented] (JENA-2118) Change IO.asUTF8 to map bad characters to U+FFFD not throw an exception.

    [ https://issues.apache.org/jira/browse/JENA-2118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17367650#comment-17367650 ] 

ASF subversion and git services commented on JENA-2118:
-------------------------------------------------------

Commit e29bbf83745a9ad9ad59d3fef4b6f34aff627933 in jena's branch refs/heads/main from Andy Seaborne
[ https://gitbox.apache.org/repos/asf?p=jena.git;h=e29bbf8 ]

JENA-2118: Fixes for CharStreamReader.read(char[]) and the Reader wrapper.

Tidy up IO and CharStreamBuffered.


> Change IO.asUTF8 to map bad characters to U+FFFD not throw an exception.
> ------------------------------------------------------------------------
>
>                 Key: JENA-2118
>                 URL: https://issues.apache.org/jira/browse/JENA-2118
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Base, RIOT
>    Affects Versions: Jena 4.1.0
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>            Priority: Major
>             Fix For: Jena 4.2.0
>
>
> {{IO.asUTF8}} uses an unmodified {{CharsetDecoder}} created from {{StandardCharsets.UTF_8}} passed to JDK {{InputStreamReader}}. It has "unmappable" set to REPORT.
> But if {{InputStreamReader}} is passed the charset, it creates then modifies to get a {{CharsetDecoder}} with unmappable set to "REPLACE" (i.e. use U+FFFD, the unicode "unmappable" character.)
> Change the behaviour to be "REPLACE".



--
This message was sent by Atlassian Jira
(v8.3.4#803005)