unicode strings now writing as is, without escaping

This commit is contained in:
MihailRis 2024-01-25 01:01:09 +03:00
parent 0beeaf93ef
commit 7613aa4e97

View File

@ -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;
}