1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-03 15:40:05 +00:00

fix: support SOH, STX and DC1 control characters in mp_jsonout

This commit is contained in:
munja
2022-03-28 15:54:28 +01:00
parent 7c86d6163a
commit 23a01347f1
5 changed files with 28 additions and 6 deletions

View File

@@ -380,8 +380,11 @@ data _null_;
put ' prxchange(''s/''!!''0A''x!!''/\n/'',-1, ';
put ' prxchange(''s/''!!''0D''x!!''/\r/'',-1, ';
put ' prxchange(''s/''!!''09''x!!''/\t/'',-1, ';
put ' prxchange(''s/''!!''01''x!!''/\\u0001/'',-1, /* SOH */ ';
put ' prxchange(''s/''!!''02''x!!''/\\u0002/'',-1, /* STX */ ';
put ' prxchange(''s/''!!''11''x!!''/\\u0011/'',-1, /* DC1 */ ';
put ' prxchange(''s/\\/\\\\/'',-1,&&name&i) ';
put ' )))))!!''"''; ';
put ' ))))))))!!''"''; ';
put ' %end; ';
put ' %end; ';
put ' run; ';