It seems like a pretty complicated problem to work with std :: string and UTF8, and I can't find a good explanation for do and dont's.
How can I work correctly with UTF8 in C ++? This is pretty confusing.
I found boost::locale and I set the global locale:
std::locale::global(boost::locale::generator()(""));
However, after that, what do I need to think about when I can get problems? Will writing / reading from a file work properly, comparing strings, etc. ??
So far I know the following:
std::regex / boost::regex will not work, you need covnert for wide lines and use wregex.boost::algorithm::to_upper will not work, you need to use boost::locale::to_upper
Also, what do I need to know?
ronag source share