These kinds of cross-charset questions date back to as long as I can remember with DataPower.
You'd have thought, by now, this would have been addressed more elegantly.
Yes, I agree. If you put in an RFE, I'll vote for it.
------------------------------
Joseph Morgan
CEO - Independent
Joseph Morgan
Dallas TX
------------------------------
Original Message:
Sent: Tue October 22, 2024 03:56 AM
From: John Gouw
Subject: xml parser of WSP does not use iso-8859-1 characterset when set in content-type results in illegal character
In our production environment on a wsdl webservice that is used international by EU many countries I ran into the following issue.
When parsing a Soap message with in the http header the content-type set to characterset iso-8859-1, the XML parser tries to parse it using characterset UTF-8 and reports errors for special characters. (illegal character error). Only when including the iso-8859-1 characterset in the xml itself (<?xml version="1.0" encoding="iso-8859-1"?>) the encoding is done using iso-8859-1.
I think this is faulty behaviour of the DataPower. If NO characterset is set in xml/soap, but it is set in the http header by means of the content-type, I think the parser should use the indicated characterset of the content-type.
What do you think?
------------------------------
John Gouw
------------------------------