C/C++中读取中文路径文件的方法

转自 http://apps.hi.baidu.com/share/detail/33007444 ios 有时候用ifstream或ofstream打开带有中文路径的文件会失败。app 解决办法: 一、使用C语言的函数设置为中文运行环境 setlocale(LC_ALL,"Chinese-simplified");函数 二、使用STL函数设置为系统语言环境 std::locale::global
相关文章
相关标签/搜索