Opened 8 years ago
#10796 new Bugs
JSON writer incorrectly escapes UTF8 strings
Reported by: | Owned by: | Sebastian Redl | |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost 1.56.0 | Severity: | Problem |
Keywords: | json, escaping, utf8 | Cc: |
Description
Consider a string s = "Šnipiškių".
JSON writer stores "\u00C5\u00A0nipi\u00C5\u00A1ki\u00C5\u00B3", which is actually "Šnipiškių".
Expected behaviour:
- UTF-8 strings properly escaped by boost::property_tree::write_json
- boost::property_tree::read_json then reads EXACTLY the same UTF8 string.
I.e., if the original ptree contained "Šnipiškių", the same string "Šnipiškių" must be read back by read_json.
Note:
See TracTickets
for help on using tickets.