qt creator 源代码中含有中文编译报错

Tools-Options-Text Editor-Behavior-File Encoding-Default encoding:UTF-8
Tools-Options-Text Editor-Behavior-File Encoding-UTF-8 BOM:Add If Emcoding Is UTF-8

在代码中添加:
#pragma execution_character_set("utf-8")
posted @ 2016-06-12 15:14  酷熊  阅读(397)  评论(0编辑  收藏  举报