Hi

You want the XML outputted to write encodoing="iso-8859-1" in the XML
declaration?
Try checking the JAXB API how to set the encoding. That will help us.

You can set a Exchange property with the encoding, however not all
components/dataformats know this one.

There is a constant on Exchange.CHARSET_NAME you can set to the encoding name.

You can do this in your route
from...setProperty(Exchange.CHARSET_NAME, "iso-8859-1").marshal...

There is a Spring XML tag for it as well.

Maybe the JAXB data format already know it. I cant remember.
But checking how to set the encoding in JAXB is the key.



On Fri, Mar 27, 2009 at 11:17 AM, Tobias Emmerich
<[email protected]> wrote:
>
> Hallo together,
>
> i want to set the encoding from standart UTF-8 to iso-8859-15 in my "Camel
> Root".
>
> The source till now is like this:
>
> <marshal>
>   <jaxb id="myJaxb" prettyPrint="true" contextPath="acknowledgement"/>
> </marshal>
>
> i searched for somthing like:
>
> <jaxb id="myJaxb" prettyPrint="true" contextPath="acknowledgement"
> encoding="iso-8859-15"/>
>
> Is there a standard way to set the encoding like this or is the only way
> writing my on jaxb class?
>
> Thanks for help
>
> Tobias
> --
> View this message in context: 
> http://www.nabble.com/Jaxb-Encoding-tp22738950p22738950.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to