Skip to content

Commit

Permalink
allow non-ascii in arrays to render as UTF8 like everything else
Browse files Browse the repository at this point in the history
  • Loading branch information
arnej27959 committed Dec 16, 2024
1 parent 4f339ac commit 5a3ed0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void encodeSTRING(String value) {
case '\r': out.append('\\').append('r'); break;
case '\t': out.append('\\').append('t'); break;
default:
if (c > 0x1f && c < 127) {
if (c > 0x1f) {
out.append(c);
} else { // requires escaping according to RFC 4627
out.append('\\').append('u');
Expand Down

0 comments on commit 5a3ed0c

Please sign in to comment.