jsoncpp icon indicating copy to clipboard operation
jsoncpp copied to clipboard

doesAnyCharRequireEscaping() conflicts with UTF-8

Open janhec opened this issue 1 year ago • 2 comments

toStyledString() produces \u escapes for UTF-8 characters such as ï. This is caused by escaping on the ground that c > 0x7F in doesAnyCharRequireEscaping(), called from valueToQuotedStringN() from BuiltStyledStreamWriter::writeValue(). The last part of the condition imo should be removed; After removing c > 0x7F, I get normal UTF-8 which I need and is imo in line with the specs.

janhec avatar Aug 22 '24 12:08 janhec