Camel charset is ignored while un-marshaling data

Posted on

Hi,
We are un-marshaling the base64 encoded data using utf8 encoding ,but we are getting issue for some special character. While we decode this string in camel it results into some junk character.The same is working fine we do outside camel on same VM using vanilla JAVA code.
We are using Apache camel with fuesesb container to deploy the osgi bundle.

code in camel:

utf-8

this method is used to decode Employee Data
-->

We are able un-marshal the base64 encoded data with java code successfully, but with camel even with using bean we are getting junk data for "Sérgio123" special characters. de-coded string for the same in camel is "S?rgio123".

So how can we do the un-marshal with utf-8 encoding in camel.

Responses