Bad characters in debug file after upgrading from 1.38 to 1.45
Posted: Fri Aug 19, 2022 7:40 am
Hey!
I did an upgrade from 1.38 to 1.45 and started having issues with the debug files. Looks like there are bad characters in the files that are preventing me from serving the content of the files through a CGI program. This is usually an issue with CCSID, but since nothing has changed in my code it's difficult for me to see what is causing this.
Here is the code that is making the request and creating the debug file:
Here is the "bad character" that recently started appearing:
Any clue what might be causing this? Thanks in advance.
I did an upgrade from 1.38 to 1.45 and started having issues with the debug files. Looks like there are bad characters in the files that are preventing me from serving the content of the files through a CGI program. This is usually an issue with CCSID, but since nothing has changed in my code it's difficult for me to see what is causing this.
Here is the code that is making the request and creating the debug file:
Code: Select all
HTTP_XmlStripCRLF(*ON);
HTTP_setCCSIDs(1208:278 :1208:278 ); // CCSID 1208 = UTF-8
HTTP_setOption('network-ccsid':'1208');
HTTP_setOption('local-ccsid':'278');
HTTP_setOption('file-ccsid':'1208');
HTTP_setOption('content-type':'');
http_debug(*ON:pathToDebugFile);
rc = http_req(
%trim(xb.HTTPVERB)
: build_url(messageType.HTTP_URL:xb)
: tmpFileResponse // File to receive
: *omit // String to receive
: tmpFileOut // File to send
: *omit ); // String to send
Any clue what might be causing this? Thanks in advance.