mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-18 21:58:56 +00:00
Output JSON strings as natural UTF-8 text without escapes (#4710)
* Added support for the non-escaped print of utf-8 string. * EscapeString: the first invalid symbol resets print_natural_utf8 flag to false. * Move the test to ParseAndGenerateTextTest. Fixes. * Removed dependence between `natural_utf8` and `allow_non_utf8` flags.
This commit is contained in:
committed by
Wouter van Oortmerssen
parent
85faa46fb3
commit
12c4c2238c
@@ -1,13 +1,5 @@
|
||||
{
|
||||
"name": "unicode_test",
|
||||
"testarrayoftables": [
|
||||
{ "name": "Цлїςσδε" },
|
||||
{ "name": "フムアムカモケモ" },
|
||||
{ "name": "フムヤムカモケモ" },
|
||||
{ "name": "㊀㊁㊂㊃㊄" },
|
||||
{ "name": "☳☶☲" },
|
||||
{ "name": "𡇙𝌆" }
|
||||
],
|
||||
"testarrayofstring": [
|
||||
"Цлїςσδε",
|
||||
"フムアムカモケモ",
|
||||
@@ -15,5 +7,25 @@
|
||||
"㊀㊁㊂㊃㊄",
|
||||
"☳☶☲",
|
||||
"𡇙𝌆"
|
||||
],
|
||||
"testarrayoftables": [
|
||||
{
|
||||
"name": "Цлїςσδε"
|
||||
},
|
||||
{
|
||||
"name": "フムアムカモケモ"
|
||||
},
|
||||
{
|
||||
"name": "フムヤムカモケモ"
|
||||
},
|
||||
{
|
||||
"name": "㊀㊁㊂㊃㊄"
|
||||
},
|
||||
{
|
||||
"name": "☳☶☲"
|
||||
},
|
||||
{
|
||||
"name": "𡇙𝌆"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user