Subject: Re: [boost] An invalid XML character (Unicode: 0x8) problem because of property_tree::xml_parser::write_xml
From: Rohan Shetty (shetty_rohan_at_[hidden])
Date: 2015-03-03 22:06:05
On 03/03/2015 5:28 PM, Mathias Gaunard wrote:> This mailing-list uses bottom- and inline-posting, please lay out yourÂ > responses accordingly.
> It is not reasonable to expect that the write_xml function wouldÂ > silently drop data by default.> If you want invalid data to be removed, you'll have to do this yourselfÂ > prior to calling the function.
> This signature of write_xml doesn't actually do anything encoding-wise,Â > it outputs your data as-is, and marks the data as being the encoding youÂ > specified.
> It might be more sensible to set up the encoding correctly though, or toÂ > convert your data to the right encoding.> There is another overload of write_xml that can imbue a locale whenÂ > writing the data, which can be used for transparent transcoding.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk