Stefan Mandel created CAMEL-8356:
------------------------------------

             Summary: IOConverter.toInputStream(file, charset) returns strange 
behaving stream
                 Key: CAMEL-8356
                 URL: https://issues.apache.org/jira/browse/CAMEL-8356
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.14.1, 2.15.0
            Reporter: Stefan Mandel


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
(v6.3.4#6332)

Reply via email to