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/09 02:43:11 UTC

[jira] [Assigned] (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 reassigned CAMEL-5943:
-----------------------------------

    Assignee: Willem Jiang
    
> 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
>         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&amp;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