camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <>
Subject [jira] Commented: (CAMEL-1573) convertBodyTo should have an optional parameter for setting the encoding
Date Thu, 30 Apr 2009 15:02:38 GMT


Christian Schneider commented on CAMEL-1573:

Hi Claus,

I have just tested with org.w3c.dom.Document. This seems to work fine. So we have a solution
for my problem. 
But in any case this should be added to documentation. I did not know that I can convert to

Is there any page already for the convertBodyTo ? I did not find one. It would be quite nice
to have some examples for conversions. Perhaps there could be one page per dsl method. Are
there any plans to build this? 

> convertBodyTo should have an optional parameter for setting the encoding
> ------------------------------------------------------------------------
>                 Key: CAMEL-1573
>                 URL:
>             Project: Apache Camel
>          Issue Type: Improvement
>    Affects Versions: 2.0-M1
>            Reporter: Christian Schneider
>             Fix For: 2.0-M2
> When converting data  from a binary form the convertBodyTo(String.class) function currently
does not support changing the encoding. This should be added.  Additionally it would be nice
to have automatic encoding settings for xml files that contain a <?xml header with an encoding
> The issue happened for me when I tried to read from a FileEndpoint. I have debugged into
the code and found that where the file is read there seems to be no support for encoding at
all. But maybe I am wrong. I will search for the place in the code and post a link here.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message