fstream 读写中文路径的问题 解决办法: 1、使用C语言的函数设置为中文运行环境 setlocale(LC_ALL, ""); 2、使用STL函数设置为系统语言环境 std :: locale :: global(std :: locale(""));