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] [Created] (CAMEL-5943) camel-hl7 marshal charset error
Date Tue, 08 Jan 2013 22:10:12 GMT
Andrea Tarocchi created CAMEL-5943:
--------------------------------------

             Summary: 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


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