Boost C++ Libraries: Ticket #309: boost::serialization - strings with '&' character included https://svn.boost.org/trac10/ticket/309 <pre class="wiki">The issue is related to xml serialization only. I am trying to serialize strings with &amp; character included. When I am trying to deserialize such a string, everything after '&amp;' just disappeared. Also I noticed that serializer doesn't convert '&amp;' to xml entity '&amp;'. I guess it should. However it converts from amp entity when deserializing. Even if I convert '&amp;' to xml entity manually, the problem still occur. As I found debugging the source code, the problem happens because of wrong spirit rule in basic_xml_grammar.ipp file: CharData = (*(anychar_p - chset_p(L"&amp;&lt;"))) [ append_string&lt; StringType, BOOST_DEDUCED_TYPENAME std::basic_string&lt;CharType&gt;::const_iterator &gt;(rv.contents) ] ; when I deleted '&amp;' I was able to deserialize strings with '&amp;' at least. I do not know how it can affect other aspects of deserialization. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/309 Trac 1.4.3 Robert Ramey Sun, 10 Oct 2004 16:22:09 GMT <link>https://svn.boost.org/trac10/ticket/309#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/309#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=396141 I believe this has been addressed in the forth coming version (1.32). I will double check this. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>sf-robot</dc:creator> <pubDate>Fri, 04 Nov 2005 03:20:08 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/309#comment:2 https://svn.boost.org/trac10/ticket/309#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). </pre> Ticket