Opened 8 years ago

#10796 new Bugs

JSON writer incorrectly escapes UTF8 strings

Reported by: vygis.d@… 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:

  1. UTF-8 strings properly escaped by boost::property_tree::write_json
  2. 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.

Change History (0)

Note: See TracTickets for help on using tickets.