[ 
https://issues.apache.org/jira/browse/CAMEL-8356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14342157#comment-14342157
 ] 

ASF GitHub Bot commented on CAMEL-8356:
---------------------------------------

GitHub user almondtools opened a pull request:

    https://github.com/apache/camel/pull/412

    CAMEL-8356 corrections to default charset

    this pull request contains:
    - corrections to IOConverter as described in issue CAMEL-8356
    - unit tests for json path (related to CAMEL-8346)
    - the fix for CAMEL-8346 (ported from master)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/almondtools/camel CAMEL-8356-2.14.x

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/412.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #412
    
----
commit 7f6538cb1b30a80eef3f743d0f9e98b3e7b8f1bc
Author: Stefan Mandel <[email protected]>
Date:   2015-03-01T11:26:15Z

    CAMEL-8356 corrections to default charset

----


> 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
>            Assignee: Willem Jiang
>             Fix For: 2.14.3, 2.15.0
>
>         Attachments: 
> CAMEL8356-repaired-Test-and-adjusted-converter-imple.patch, 
> IOConverterCharsetTest.java, 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
(v6.3.4#6332)

Reply via email to