camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Mandel (JIRA)" <>
Subject [jira] [Updated] (CAMEL-8356) IOConverter.toInputStream(file, charset) returns strange behaving stream
Date Sat, 14 Feb 2015 12:14:11 GMT


Stefan Mandel updated CAMEL-8356:
    Attachment: german.utf-8.txt

I wanted to provide a patch, but the resulting patch also had charset problems. So the Test
has to be deployed manually:
- The java file can be placed next to th IOConverterTest
- The text files have to be placed at the directory mentioned in the test

I can help to debug/patch this problem, when someone has confirmed this defect.

> IOConverter.toInputStream(file, charset) returns strange behaving stream
> ------------------------------------------------------------------------
>                 Key: CAMEL-8356
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.1, 2.15.0
>            Reporter: Stefan Mandel
>         Attachments:, german.iso-8859-1.txt, german.utf-8.txt
> Calling IOConverter.toInputStream with either UTF-8 or ISO-8859-1 returns a stream that
behaves strange on non-ascii-characters:
> - putting this stream into an InputStreamReader will return false encoded characters
> - a naive new BufferedReader(new InputStreamReader(new FileInputStream(file), charset))
will return the correctly encoded characters.
> I will attach some unit tests for this case.

This message was sent by Atlassian JIRA

View raw message