My Oracle Support Banner

Problem using CharSetConversion CP1252 (Doc ID 498653.1)

Last updated on JUNE 21, 2023

Applies to:

Siebel System Software - Version 7.5.3 [16157] and later
z*OBSOLETE: Microsoft Windows NT Terminal Server
Version: 7.5.3 [16157]

Database: Oracle 8.1.7

Application Server OS: Microsoft Windows NT Workstation 4.0 SP 6

Database Server OS: Microsoft Windows NT Workstation 4.0 SP 6


Using the EAI HTTP Transport, with 'CP1252' selected as CharSetConversion, the java application cannot read the data even with normal text characters. We get a MalformedInputException while reading the http request. I tried with both 'UTF-8' and 'UTF-16' encoding for BufferReader.


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
 Message 1

Thank you for using the Siebel SupportWeb.

For the benefit of other readers, the EAI HTTP Transport was being used to send a request to a custom java application. The ‘Character Set Conversion for Text Data’ (CharSetConversion) parameter had been specified as CP1252.

When the request was traced, the HTTP packet contained :-

Content-Type: application/x-www-form-urlencoded;charset=CP1252

But the actual data (‘TEST’) appeared to be double-byte encoded, and is identical to the data sent if UTF-16 had been used :-
(Hex) FF FE 54 00 45 00 53 00 54

If windows-1252 or Local is specified instead of CP1252, the packet contained (as expected) single byte characters corresponding to the Windows codepage 1252.

Content-Type: application/x-www-form-urlencoded;charset=windows-1252
(Hex) 54 45 53 54

The behaviour was re-produced. Change request 12-IJ7ZVZ has been logged, and will be prioritized for a later release. If the requirement is to send data using code page 1252, specify windows-1252 instead of CP1252 for the CharSetConversion parameter.

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