Re: [Boost-bugs] [Boost C++ Libraries] #12787: how to read non-utf8 strings with boost::property_tree

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12787: how to read non-utf8 strings with boost::property_tree
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-25 10:10:44


#12787: how to read non-utf8 strings with boost::property_tree
-------------------------------+---------------------------
  Reporter: steinbac@… | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.61.0 | Severity: Showstopper
Resolution: | Keywords:
-------------------------------+---------------------------

Comment (by steinbac@…):

 apparently the problem lies in
 {{{
 boost::property_tree::detail::json_parser::utf8_utf8_encoding
 }}}
  located in narrow_encoding.hpp. the function
 {{{
 utf8_utf8_encoding::trail_table(unsigned char c)
 }}}
  returns -1 for the '\002' character that is contained in my problematic
 string. I guess it would be nice to have a custom encoding as I see no
 other way around it. Besides, can someone elaborate what this function
 does? It's not clear to me and it's not documented.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12787#comment:1>
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:20 UTC