Index: boost/spirit/home/support/info.hpp =================================================================== --- boost/spirit/home/support/info.hpp (revision 74182) +++ boost/spirit/home/support/info.hpp (working copy) @@ -15,6 +15,7 @@ #include #include #include +#include #include #include #include @@ -127,6 +128,7 @@ struct simple_printer { typedef utf8_string string; + typedef typename Out::char_type char_type; simple_printer(Out& out) : out(out) {} @@ -134,9 +136,13 @@ void element(string const& tag, string const& value, int /*depth*/) const { if (value == "") - out << '<' << tag << '>'; + out << char_type('<') + << locale::conv::utf_to_utf(tag) + << char_type('>'); else - out << '"' << value << '"'; + out << char_type('"') + << locale::conv::utf_to_utf(value) + << char_type('"'); } Out& out;