Subject: [Boost-bugs] [Boost C++ Libraries] #10796: JSON writer incorrectly escapes UTF8 strings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-11-16 20:10:26
#10796: JSON writer incorrectly escapes UTF8 strings
----------------------------------+---------------------------
Reporter: vygis.d@⦠| Owner: cornedbee
Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.56.0 | Severity: Problem
Keywords: json, escaping, utf8 |
----------------------------------+---------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10796> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC