JAX-WS WebServices do not return UTF-8 by default since 10.3.6 (Doc ID 1593902.1)

Last updated on JUNE 09, 2017

Applies to:

Oracle Weblogic Server - Version 10.3.6 and later
Information 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)

- I will return in my 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 tjhe 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

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms