1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-11 06:24:35 +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

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