No matter what I do the marshaller complains about:
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
I set these values:
System.setProperty("org.apache.camel.default.charset", "iso-8859-1");
exchange.setProperty(Exchange.CHARSET_NAME, "iso-8859-1");
<jaxb id="jaxbIntermediateIn" contextPath="jaxbmodel"
prettyPrint="false" ignoreJAXBElement="true" encoding="iso-8859-1" />
And the marshaller still wants UTF-8?
Right now I have this working:
<route>
<from uri="file:data/in" />
<convertBodyTo type="String" charset="UTF-8" />
<unmarshal ref="jaxbIntermediateIn" />
<marshal ref="jaxbIntermediateOut" />
<convertBodyTo type="String" charset="iso-8859-1" />
<to uri="file:data/out" />
</route>
But that's not a very nice a solution.
--
View this message in context:
http://camel.465427.n5.nabble.com/Encoding-acting-odd-tp1037744p1044712.html
Sent from the Camel - Users mailing list archive at Nabble.com.