Trying to create & post a JSON file to a URL using YAJL, but facing issue with certain special character.
Can you please assist on resolving this?
Details below:
JSON is successfully created & received at destination. Data contains a special character ¬ (Logical negation symbol)
When I opened ".json" file through notepad, the special character could be seen as is. However when I opened ".json" file directly through ACS IFS folder or with textpad ¬ is displayed as a different special character.
I am in the process of verifying with receiver end as how they received this special character.
Meanwhile would like to confirm if YAJL can take input of any special character (including ¬ but not limited to) and send the same way to destination?
Unable to access Scott Klement's YAJL link due to timeout: www.scottklement.com/yajl
Code snippets:
Write to JSON -
yajl_addChar('deliveryAddress': %trim(addr));
Copy to Buffer -
yajl_copyBuf( CCSID
: %addr(myJSON:*data)
: %len(myJSON)
: length );
Set CCSID, add headers & Post payload -
http_setCCSIDs( 1208: 0 );
http_xproc( HTTP_POINT_ADDL_HEADER
: %paddr(add_headers) )
rc = http_url_post( %trim(URL)
: %addr( myJSON : *data )
: %len( myJSON )
: %Trim(LogFile)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/json; charset=UTF-8');
Any inputs on this issue would be helpful!
Can you please assist on resolving this?
Details below:
JSON is successfully created & received at destination. Data contains a special character ¬ (Logical negation symbol)
When I opened ".json" file through notepad, the special character could be seen as is. However when I opened ".json" file directly through ACS IFS folder or with textpad ¬ is displayed as a different special character.
I am in the process of verifying with receiver end as how they received this special character.
Meanwhile would like to confirm if YAJL can take input of any special character (including ¬ but not limited to) and send the same way to destination?
Unable to access Scott Klement's YAJL link due to timeout: www.scottklement.com/yajl
Code snippets:
Write to JSON -
yajl_addChar('deliveryAddress': %trim(addr));
Copy to Buffer -
yajl_copyBuf( CCSID
: %addr(myJSON:*data)
: %len(myJSON)
: length );
Set CCSID, add headers & Post payload -
http_setCCSIDs( 1208: 0 );
http_xproc( HTTP_POINT_ADDL_HEADER
: %paddr(add_headers) )
rc = http_url_post( %trim(URL)
: %addr( myJSON : *data )
: %len( myJSON )
: %Trim(LogFile)
: HTTP_TIMEOUT
: HTTP_USERAGENT
: 'application/json; charset=UTF-8');
Any inputs on this issue would be helpful!
Comment