1002: lexical error: invalid character inside string.█
The document for the DATA-INTO operation does not match the RPG variable;
I have even tried making my entire data structure UTF-8 and it gives the same message.
Is there anyway to convert the data ignoring invalid characters?
This is the text that is causing the error: "DAOSHIAOKOU ROAD, SHENZE NEW AREAï¼PANAN COUNTY"
This is the basic code I am using. The GetVPODS is a very large, nested data structure.
Code: Select all
dcl-s URL varchar(1000);
Dcl-S request Varchar(2000000:4);
dcl-ds *n;
response Varchar(2000000:4);
RespUTF Varchar(2000000:4) ccsid(*UTF8) pos(1);
end-ds;
rc = http_xproc(HTTP_POINT_ADDL_HEADER:
%paddr(add_Auth_Headers));
http_setOption('network-ccsid': '1208');
rc = http_req( 'GET'
: URL
: *omit
: response
: *omit
: request
: 'application/json; charset=utf-8');
data-into(E) GetVPODS %DATA( response : DataIntoOptions)
%PARSER( 'YAJL/YAJLINTO':'{"value_null" : "-1"}');