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.4.0SDK, 2.3.1SDK
            Reporter: Jens Grivolla
            Priority: Minor


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

        

Reply via email to