[quote=引用 2 楼 year2002 的回复:] 我试了一下,读出来就是乱码啊,转换成wstring就可以显示,你用wstring操作完了再转回string就是了 std::string str; while (std::getline(file, str)) { std::wstring ppp = conv.from_bytes(str); std::string kkk = conv.to_bytes(ppp); }
我试了一下,读出来就是乱码啊,转换成wstring就可以显示,你用wstring操作完了再转回string就是了 std::string str; while (std::getline(file, str)) { std::wstring ppp = conv.from_bytes(str); std::string kkk = conv.to_bytes(ppp); }
64,646
社区成员
250,476
社区内容
加载中
试试用AI创作助手写篇文章吧