Thanks for those points, Scott.
----- Original Message -----
From: Scott Klement <web400@xxxxxxxxxxxxxxxx>
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Cc:
Sent: Thursday, July 4, 2013 11:17 PM
Subject: Re: [WEB400] XML response is getting scrambled
If it helps, Nathan, IBM has info about how the different CgiConvMode
settings react to the 'charset' keyword here:
http://pic.dhe.ibm.com/infocenter/iseries/v7r1m0/topic/rzaie/rzag3ch1envvar.htm
(Make sure you look at Table 2, because Table 1 is for input.)
Since your content-type is not 'text/*' it will not do translation of
the body, only the headers. Since you say 'utf-8', it'll try to figure
out the EBCDIC equivalent of UTF-8 and translate accordingly. (No idea
what that would be -- there really isn't an EBCDIC equivalent of UTF-8.
I bet it assumes the job CCSID, but it doesn't say...)
If you specified text/xml, and utf-8, I suspect it doesn't translate the
body of document, since there is no EBCDIC equivalent of UTF-8. On the
other hand, if you had specified iso-8859-1, I bet it would translate
because there is an EBCDIC equivalent of that.
But, in any case, because you're using 'application/xml' (not text/xml)
it shouldn't translate.
As an Amazon Associate we earn from qualifying purchases.