Hi Christian,
One option (bit limited though) is to use file.encoding property and if
it's set use that for encoding. In this case the application need to
pass in -Dfile.encoding property to the JVM. However, this doesn't
guarantee the encoding used will always be same as the one that original
message was encoded in.
Regards,
Ulhas Bhole
Ulhas Bhole wrote:
Hi Christian,
The place Eduard mentioned in Jira is correct. I was looking at this
JIRA sometime back but had the same problem of how to determine
encoding type. JMS TextMessage doesn't contain any encoding
information so it's hard to know what is the encoding of the contents.
Regards,
Ulhas Bhole
Christian Schneider wrote:
In the issue CXF-1668 Eduard reported that CXF uses the system
encoding for JMS Messages. This is wrong as most times messages are
to be transmitted using UTF-8.
I want to build a patch for this issue but need some conceptional help.
When we receive a message from JMS how can we decide which encoding
it uses? Should I try to use the <?xml encoding=""?> tag? Where is a
good point to add this functionality? Should I add it in
handleResponse like Eduard suggested?
Best regards
Christian
https://issues.apache.org/jira/browse/CXF-1668
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland