camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Tarocchi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-5943) camel-hl7 marshal charset error
Date Tue, 08 Jan 2013 22:16:14 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrea Tarocchi updated CAMEL-5943:
-----------------------------------

    Attachment: camel-hl7-dataformatCharEncoding-patch.txt

Patch provided (local to camel-hl7 subproject)
                
> 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
>            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

Mime
View raw message