How to read Unicode XML values with rapidxml
问题 RapidXML is one of the available libraries for parsing XML in c++. For getting the values, we can use something like: node->first_node("xmlnode")->value() This command returns a char* data type. Is there any way to read the value as Unicode so I can assign it in a WCHAR or wstring variable? 回答1: From the manual RapidXml is character type agnostic, and can work both with narrow and wide characters. Current version does not fully support UTF-16 or UTF-32, so use of wide characters is somewhat