Boost C++ Libraries: Ticket #13143: boost read_json throw exception when the json file has some gbk chinese charactor https://svn.boost.org/trac10/ticket/13143 <p> there is a json file like this, without bom, use gbk code set. The boost::property_tree can parse it successfully in the majority. </p> <pre class="wiki">try { boost::property_tree::read_json(filename, tree); } catch (exception &amp;e) { cerr &lt;&lt; e.what() &lt;&lt; endl; } </pre><p> However, if the file has chinese character"历"(c0fa)or"繞"(c040), the property_tree will throw exception"invalid code sequence" </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13143 Trac 1.4.3 Li Da <sculida@…> Tue, 01 Aug 2017 02:51:09 GMT <link>https://svn.boost.org/trac10/ticket/13143#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13143#comment:1</guid> <description> <p> the code set gbk is simalar to gb2312,gb18030 </p> </description> <category>Ticket</category> </item> </channel> </rss>