1、使用带bom的UTF8文件格式 2、, 在代码中添加 #pragma execution_character_set("utf-8") 3、使用notepad++打开原有源码文件,执行“转为UTF-8编码格式”。 在编译源码就可以了。