Skip to content

Commit 803da3c

Browse files
committed
Make JSON serialization emit UTF-8
1 parent fe3ab01 commit 803da3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/convert_json.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ void fastWriteJson(const Json::Value &value, std::ostream &to)
1414
{
1515
Json::StreamWriterBuilder builder;
1616
builder["indentation"] = "";
17+
builder["emitUTF8"] = true;
1718
std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter());
1819
writer->write(value, &to);
1920
}

0 commit comments

Comments
 (0)