You can pass in the encoding in the convertBodyTo. But I believe the
was a bug so you gotta use Camel 2.2 where its fixed.

.convertBodyTo(String.class, "utf-8"):

Otherwise you can just use a Processor and covert the data yourself.


On Tue, Feb 16, 2010 at 4:55 PM, Bak Attila <[email protected]> wrote:
>
> Hi
>
> I have a problem. I am reading a file(utf-8) then validate against an XSD
> and transform with an XSL transformator. Auf mein Mac everything works ok
> but when i transfer the app to an older machine it stops working because of
> some character loss.
> I am using convertBodyTo(String.class) and i think the problem is that
> during this call it is converted false on the other machine.
> What is the recommended way of using/converting validating  UTF-8 files?
> I have read that there is a system prop: "org.apache.camel.default.charset".
> Where do i need to set that?
>
> Can someone please give me an example(pseudocode) of correctly
> reading/converting/validating/transforming UTF-8 files?
>
> Thanks
> attila
> --
> View this message in context: 
> http://old.nabble.com/Read-Utf-8-file-validate-transform-as-UTF-8-tp27610459p27610459.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to