How to match unicode characters with boost::spirit?
问题 How can I match utf8 unicode characters using boost::spirit ? For example, I want to recognize all characters in this string: $ echo "На берегу пустынных волн" | ./a.out Н а б е р е гу п у с т ы н н ы х в о л н When I try this simple boost::spirit program it will not match the unicode characters correctly: #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/support_istream_iterator.hpp> #include <boost/foreach.hpp> namespace qi = boost::spirit::qi; int main() { std::cin