You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/01/11 08:38:13 UTC
[jira] [Resolved] (CAMEL-5943) camel-hl7 marshal charset error
[ https://issues.apache.org/jira/browse/CAMEL-5943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-5943.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.11.0
2.10.4
2.9.6
Applied the patch into trunk, camel-2.10.x and camel-2.9.x branches.
> camel-hl7 marshal charset error
> --------------------------------
>
> Key: CAMEL-5943
> URL: https://issues.apache.org/jira/browse/CAMEL-5943
> Project: Camel
> Issue Type: Bug
> Components: camel-hl7
> Environment: All
> Reporter: Andrea Tarocchi
> Assignee: Willem Jiang
> Priority: Critical
> Labels: charset, converting, dataformat, hl7, marshaling, unmar
> Fix For: 2.9.6, 2.10.4, 2.11.0
>
> Attachments: camel-hl7-dataformatCharEncoding-patch.txt
>
> Original Estimate: 48h
> Remaining Estimate: 48h
>
> Suppose you have an environment with default charset = ISO-8859-1 and a route like this one:
> {code:xml}
> ...
> <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
> ...
> {code}
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira