The IBM docs even say:

If you configure the server to convert between ASCII and EBCDIC, the server will check entity bodies with text/* or application/x-www-form-urlencoded Content-Types for a charset tag. If found, the server converts the corresponding ASCII CCSID to the EBCDIC CCSID of the job. If not found, the server uses the value of the DefaultNetCCSID configuration directive as the CCSID from which to convert.

Of course, I think this all goes west if your CGI thread has a CCSID of 65535.

-----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: 16 January 2017 21:14
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Read POST CGI data

Yes that is correct - I misread Justin's post and assumed he said it was "not" converted.

[https://www.netcracker.com/assets/img/netcracker-social-final.png] ƕ -----Original Message-----
From: WEB400 [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Bradley Stone
Sent: 16 January 2017 21:08
To: Web Enabling the IBM i (AS/400 and iSeries) <web400@xxxxxxxxxxxx>
Subject: Re: [WEB400] Read POST CGI data

While it's true applciaton/json is left as is, in this case the data is converted since it's form data even though it has a content-type of application/x-www-form-urlencoded.

http://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data

application/x-www-form-urlencoded is what is normally used on a form submit. I believe he recently posted that application/x-www-form-urlencoded was converted fine when sent.

Either that or it's simply not converted since there are no odd characters normally and my brain is fried early today.. haha!

Brad
www.bvstools.com

On Mon, Jan 16, 2017 at 2:55 PM, Henrik Rützou <hr@xxxxxxxxxxxx> wrote:

There is no translation because the Content-Type (mime-type) is
'application/x...'

If the Content type is 'text/...' an automatic translation are done
from CSSid 819 or CSSid 1208 to EBCDIC mode but non-supported
characters in the input becomes blanks in EBCDIC.

On Mon, Jan 16, 2017 at 7:33 PM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
wrote:

Manually translating the data works, so the next question is "why is
automatic translation not happening?" I'm reasonably certain that
the server does translation for other things.

Now I'm going to do a simple web form using POST, as suggested, to
see if it's client-related.
--
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.




--
Regards,
Henrik Rützou

http://powerEXT.com <http://powerext.com/>
--
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.


--
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.




________________________________
The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential, proprietary and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
--
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.



________________________________
The information transmitted herein is intended only for the person or entity to which it is addressed and may contain confidential, proprietary and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.