I tried to use curl to call a REST API that returns a JSON payload. The response was not converted to EBCDIC. I tried with an XML response which was the same. I’m assuming that curl uses the MIME type to figure out what to convert. So any text/* MIME types get correctly converted. I would suggest application/json should also be converted which by the standard is UTF8 encoded. application/xml is different as XML can be in any encoding but I would take a punt and also convert it to EBCDIC.
Curl not converting JSON or XML content types to EBCDIC
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.