Skip to content

Commit

Permalink
Merge pull request #33045 from vespa-engine/arnej/allow-utf8-in-json
Browse files Browse the repository at this point in the history
allow non-ascii in arrays to render as UTF8 like everything else
  • Loading branch information
arnej27959 authored Dec 17, 2024
2 parents 70128c0 + 5a3ed0c commit 3d2f17b
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 3d2f17b

Please sign in to comment.