Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
All
-
Patch Available
-
Moderate
Description
Suppose you have an environment with default charset = ISO-8859-1 and a route like this one:
... <bean id="hl7codec" class="org.apache.camel.component.hl7.HL7MLLPCodec"> <property name="charset" value="utf-8" /> </bean> ... <camel:from uri="mina2:tcp://localhost:8787?sync=true&codec=#hl7codec"/> //do someting with hl7 object <camel:marshal><hl7/></camel:marshal> //do someting with hl7 string ...
The marshal fail because it use default charset (ISO-8859-1 in this example) without taking in account the Exchange.CHARSET_NAME property (UTF-8 in this example)