You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Ulhas Bhole (JIRA)" <ji...@apache.org> on 2008/07/18 15:07:00 UTC

[jira] Updated: (SM-1362) Encoding problem ... creating JMS TextMessage from SoapMessage

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

Ulhas Bhole updated SM-1362:
----------------------------

    Attachment: SM-1362.patch

Patch attached for the issue with test.

> Encoding problem ... creating JMS TextMessage from SoapMessage
> --------------------------------------------------------------
>
>                 Key: SM-1362
>                 URL: https://issues.apache.org/activemq/browse/SM-1362
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-jms
>    Affects Versions: 3.2.1
>            Reporter: Michael Halmich
>         Attachments: DefaultJmsMarshalerTest.java, SM-1362.patch, soap.xml
>
>
> In DefaultJmsMarshaler.toJMS(SoapMessage, Session) a TextMessage is created and it's text is set with the return value of ByteArrayOutputStream.toString() ... which uses the platform's default character encoding (in my case Cp1252) ... this destroys german umlauts.
> When used with the right encoding (for example ByteArrayOutputStream.toString(SourceTransformer.getDefaultCharset())) it works.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.