×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I'm confident my problem isn't a CCSID issue. My program passes one content-type and valid JSON into the IBM API. The client receives a different content-type, and the payload contains a bunch of garbage followed by my valid JSON. If the client removes the garbage at the beginning, my JSON is all there and 100% correct.
Thanks
________________________________
From: B Stone <bvstone@xxxxxxxxx>
Sent: Saturday, May 25, 2019 4:04 PM
To: Web Enabling the IBM i (AS/400 and iSeries)
Subject: Re: [WEB400] Garbage in HTTP response
Justin
The HTTP server will normally convert EBCDIC to ASCII for certain content
types. application/<anything here> is not one of them.
For example, if you go to the DSPJSON example here:
http://erpgsdk.bvstools.com/
You'll see that for the eRPG SDK we specifically need to be able to set the
CCSID of the output so things would work.
Other "fixes" tried are text/json, but that's not the proper content type
for JSON.
You'll see how
Bradley V. Stone
www.bvstools.com<
http://www.bvstools.com>
MAILTOOL Benefit #16 <
https://www.bvstools.com/mailtool.html>: No external
"helper" PC system required. 100% IBM i native!
As an Amazon Associate we earn from qualifying purchases.