Hi,
I'm looking at Unicode characters returned via a webservice call. The common
encoding scenerio - it works for me, where a CXF generated client can make a
WS call, the WS call returns a String containing Unicode characters, and the
client converts them correctly. However for someone in the US, it doesn't
work.
Here's a sample out message:
INFO: Outbound Message
---------------------------
Encoding: UTF-8
Headers: {}
Messages:
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><ns1:queryResponse
xmlns:ns1="http://services.integration.javasystemsolutions.com/"><return>
<shortDescription>àèìòù!"
£$&amp;/()=...@[]#|!</shortDescription>;
</return></ns1:queryResponse></soap:Body></soap:Envelope>
(I'm returning a String that contains some XML.)
I guess I'm wondering if this is acceptable? If the client interprets that
String as utf-8, should there be no problem?
I've used wsmonitor to check the response from CXF and it definitely includes
the utf-8 encoding:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
(etc.)
The client experiencing problems is .NET.
John