#4882: \u-encode all non-printable (as opposed to non-ascii) characters

This commit is contained in:
Mike Gelfand
2015-05-16 17:33:01 +00:00
parent e0dc1d6735
commit 7abe7c28a3

View File

@@ -547,7 +547,7 @@ jsonStringFunc (const tr_variant * val,
case '\\': *outwalk++ = '\\'; *outwalk++ = '\\'; break;
default:
if (isascii (*it))
if (isprint (*it))
{
*outwalk++ = *it;
}