Rapidxml is writing wrong characters
问题 I've been using Rapidxml lately and have faced following problem. When I try to add attributes, which are not hardcoded, but generated during program runtime rapidxml inserts wrong characters. Here is my sample of code: void ProcessInfo::retriveInfo() { HANDLE hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0); PROCESSENTRY32 pe = { sizeof(pe) }; BOOL fOk = ProcessFirst( &pe, hSnapshot ); using namespace rapidxml; xml_document<> doc; xml_node<>* decl = doc.allocate_node(node