Вопрос

I'm currently using boost::spirit::xml::encode function to encode a given std::string to xml. But this function doesn't work for std::wstring.

Is there any equivalent for this that works for wide strings as well?

Это было полезно?

Решение

It works for Wide strings since all the XML-important wide characters map to the single byte ones.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top