uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thilo Goetz <twgo...@gmx.de>
Subject Re: InlineXMLCasConsumer fails depending on locale
Date Tue, 21 Feb 2012 15:08:55 GMT
On 21/02/12 15:59, Jens Grivolla wrote:
> Hi,
> 
> 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.
> 
> I suspect that it has to do with the XMLSerializer working on a
> ByteArrayOutputStream, but haven't been able to track it down yet.
> 
> Any ideas?
> 
> Bye,
> Jens
> 

Have you checked that it's really the writing end where things
get corrupted, and not the reading end?  Just a thought...

--Thilo


Mime
View raw message