On 02/03/2015 05:59, Rohan Shetty wrote:
Hi, I have used the following C++ code to generate the xml boost::property_tree::ptree ptResponse; // Populate the tree from the Microsoft Outlook contactsstd::stringstream buf; const std::string enc("utf-8"); boost::property_tree::xml_writer_settings<char> settings(' ', 0, enc); boost::property_tree::xml_parser::write_xml(buf, ptResponse, settings); This works fine. But in one of the customer's machine, when reading the this(xml content) in a JAVA program. I get the following error An invalid XML character (Unicode: 0x8) was found in the element content of the document.
Any help in solving this is appreciated.
I don't understand, the error message is quite explicit: your data isn't utf-8 even though you said it was. What were you expecting to happen? Also this would probably be more suited to the boost-users mailing list.