在cpp文件或.h文件中顶行输入: #pragma execution_character_set("utf-8") 转载于:https://www.cnblogs.com/chenhuanting/p/10515022.html