[
https://issues.apache.org/jira/browse/UIMA-2376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marshall Schor closed UIMA-2376.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.4.1SDK
Assignee: Marshall Schor
> 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
> Assignee: Marshall Schor
> Priority: Minor
> Labels: encoding, locale, unicode
> Fix For: 2.4.1SDK
>
>
> 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