Personally, I prefer to use "cgiconvmode BINARY" in the apache config and convert to/from UTF-8 myself, but you might also try "DefaultNetCCSID 1208"
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Nathan Andelin
Sent: 03 July 2013 02:33
To: Web Enabling the AS400 / iSeries
Subject: [WEB400] XML response is getting scrambled
Hello,
I'm writing a CGI web service that returns XML in accordance with a specification which mandates Content-Type: application/xml;charset="utf-8" in the HTTP Header.
Content-Type: text/plain works fine.
But
Content-Type: application/xml;charset="utf-8" causes the stream to get scrambled before being returned to the browser.
What is the secret to getting the encoding right?
-Nathan.
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.
--------------------------------------------------------------------------------
CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
As an Amazon Associate we earn from qualifying purchases.