From 7613aa4e9779854876245938bda0b3312804014d Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 25 Jan 2024 01:01:09 +0300 Subject: [PATCH] unicode strings now writing as is, without escaping --- src/coders/commons.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/coders/commons.cpp b/src/coders/commons.cpp index 82033cd5..6cf36c1c 100644 --- a/src/coders/commons.cpp +++ b/src/coders/commons.cpp @@ -67,10 +67,11 @@ std::string escape_string(std::string s) { case '"': ss << "\\\""; break; case '\\': ss << "\\\\"; break; default: - if (c < ' ') { + /*if (c < ' ') { ss << "\\" << std::oct << uint(ubyte(c)); break; - } + }*/ + // write it utf-8 encoded as is ss << c; break; }