我需要读取一个包含 utf-8 字符的文件。
我尝试使用
std::wifstream
file.imbue(std::locale(std::locale::empty(), new std::codecvt_utf8<wchar_t>));
有什么现代方法可以解决我的问题吗?