Subject: [Boost-bugs] [Boost C++ Libraries] #10022: json_parser_write inconditionally converts CP1252 to escaped unicode
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-05-08 12:29:46
#10022: json_parser_write inconditionally converts CP1252 to escaped unicode
------------------------------+---------------------------
Reporter: anonymous | Owner: cornedbee
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost 1.55.0 | Severity: Problem
Keywords: UTF-8 |
------------------------------+---------------------------
See function 'create_escapes' in
property_tree/detail/json_parser_write.hpp. I supply a property_tree
containing UTF-8 encoded values, encoded in a custom way from data in
different code pages. I want JSON with real UTF-8 encoding, which the JSON
standard just allows (as far as I googled). So here the encoding of
'special' characters to "\uXXXX" should be turned off.
All values the Ch has are directly translated to a unicode number, but
when Ch=char this only works correct when the char data is in code page
1252.
Currently the option to encode the characters nor the used code page are
parameters here.
I needed to locally adapt the code like in
http://stackoverflow.com/questions/10260688/boostproperty-treejson-parser-
and-two-byte-wide-characters
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10022> 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:16 UTC