From 5a3ed0cc73c400bfaa8668dc911c0dbe2ca76d8d Mon Sep 17 00:00:00 2001 From: Arne Juul Date: Mon, 16 Dec 2024 18:19:08 +0000 Subject: [PATCH] allow non-ascii in arrays to render as UTF8 like everything else --- .../src/main/java/com/yahoo/data/access/simple/JsonRender.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vespajlib/src/main/java/com/yahoo/data/access/simple/JsonRender.java b/vespajlib/src/main/java/com/yahoo/data/access/simple/JsonRender.java index fffaa7eacbdb..74c5ad55d4a9 100644 --- a/vespajlib/src/main/java/com/yahoo/data/access/simple/JsonRender.java +++ b/vespajlib/src/main/java/com/yahoo/data/access/simple/JsonRender.java @@ -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');