Does Boost.Locale support reading and writing UTF-8 encoded files?
It is the only reason I was excited about trying out Boost.Locale but there are no file I/O examples on the web site. I am not sur开发者_JS百科e if it means file I/O is not supported or suppoted but undocumented.
My platform is Windows 7there is such an example:
std::locale loc= generator().generate("he_IL.UTF-8");
std::wofstream file;
file.imbue(loc);
file.open("hello.txt");
file << L"שלום!" << endl;
Also Boost.Serialize can help to convert to UTF8
精彩评论