产生原因: windows默认编码不识别utf8字符 解决方法: 1. C++编译选项增加/utf-8 2. CMakeLists.txt增加如下配置 if (WIN32) add_definitions(/utf-8) endif()