My Oracle Support Banner

E-IB: Special Characters from Rest JSON Response Are Returned as Single Bytes (Doc ID 2804551.1)

Last updated on MAY 02, 2023

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.58 to 8.59 [Release 8.4]
Information in this document applies to any platform.

Symptoms


When creating a new REST provider web-service, diacritical characters such as é or è, which are correctly stored as UTF-8 in the database using two bytes (for example, the hexadecimal bytes C3 A9 for the character é), are returned by the REST service as the single byte E9 (which is an invalid value in UTF-8, but is the value for é in earlier encodings such as ISO-8859-1).


The issue can be reproduced at will with the following steps:
1. Create a REST provider web-service
2. Set the Content-Type for the response message to: application/json
3. Test using an hexdump utility

 

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
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.