JAX-WS WebServices do not return UTF-8 by default since 10.3.6
(Doc ID 1593902.1)
Last updated on JUNE 14, 2024
Applies to:
Oracle WebLogic Server - Version 10.3.6 and laterInformation in this document applies to any platform.
Symptoms
An upgrade has been done to WLS 10.3.6
WLS changed behavior with regards to in what Characterset the data is returned for JAX-WS WebServices. WLS returns now with the same Content-Type as the request (while in earlier versions this was by default utf-8).
For example:
- For a given request with:
Content-Type: text/xml;charset=ISO-8859-1
(no other headers specified like Accept-Charset or Accept)
- It will return in the WebService \u00EA (this is ê)
Then the following behavior is seen:
* in WLS versions < 10.3.6 the returned Content-Type is:
Content-Type: text/xml;charset="utf-8"
and C3AA is seen in the payload (this is the UTF-8 codepoint for ê, so correct)
* in WLS versions >= 10.3.6 the returned Content-Type is:
Content-Type: text/xml ;charset=ISO-8859-1
and EA is seen in the payload (this is the ISO-8859-1 codepoint for ê, so correct)
Changes
upgrade to WLS 10.3.6 or higher
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |