Output JSON strings as natural UTF-8 text without escapes (#4710)
authorVladimir Glavnyy <31897320+vglavnyy@users.noreply.github.com>
Thu, 3 May 2018 19:10:45 +0000 (02:10 +0700)
committerWouter van Oortmerssen <aardappel@gmail.com>
Thu, 3 May 2018 19:10:45 +0000 (12:10 -0700)
commit12c4c2238c9156446afa3cd246868e0e22441ca6
tree9433b67aecdd7e6ca2b42124ca87bdb046c4a8b5
parent85faa46fb3b934b2c07eee6ec275ee90fb7171a0
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.
include/flatbuffers/flexbuffers.h
include/flatbuffers/idl.h
include/flatbuffers/minireflect.h
include/flatbuffers/util.h
src/flatc.cpp
src/idl_gen_text.cpp
src/reflection.cpp
tests/test.cpp
tests/unicode_test.json