uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Grivolla (Commented) (JIRA)" <...@uima.apache.org>
Subject [jira] [Commented] (UIMA-2376) InlineXMLCasConsumer fails depending on locale
Date Tue, 21 Feb 2012 17:48:34 GMT

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

Jens Grivolla commented on UIMA-2376:
-------------------------------------

obvious workaround: make sure your locale is able to handle all characters that may appear
in your CAS.
                
> InlineXMLCasConsumer fails depending on locale
> ----------------------------------------------
>
>                 Key: UIMA-2376
>                 URL: https://issues.apache.org/jira/browse/UIMA-2376
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework, Examples
>    Affects Versions: 2.3.1SDK, 2.4.0SDK
>            Reporter: Jens Grivolla
>            Priority: Minor
>              Labels: encoding, locale, unicode
>
> It appears that InlineXMLCasConsumer depends on the system locale for some internal transformations.
The output appears to be written in UTF8 ({{outStream.write(xmlAnnotations.getBytes("UTF-8"))}})
but when used on a machine with a locale of ASCII all accented characters get broken.
> According to Thilo Goetz, the problem is likely caused by locale-dependent use of ByteArray
in CasToInlineXml.java, e.g.:
> {code}
> // return XML string
> return new String(byteArrayOutputStream.toByteArray());
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message