The file contains a character that cannot be represented in the current code pag

阅读更多

vs2008 打开网上下载的Qt项目,结果编译时无法通过,出现:

The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss,然后导致大量错误。大意就是代码中有当前语言代码表中无法解析的东西,应该是字符编码不一致导致的。

如果出现类似的提示,就把当前源码文件都CTRL+A选中,然后FILE—ADVANCED SAVE OPTIONS.

然后将当前语言代码表统一设置为unicode 1200即可编译无错误通过。

 

The file contains a character that cannot be represented in the current code pag_第1张图片

 

The file contains a character that cannot be represented in the current code pag_第2张图片

 

  • The file contains a character that cannot be represented in the current code pag_第3张图片
  • 大小: 48.6 KB
  • The file contains a character that cannot be represented in the current code pag_第4张图片
  • 大小: 25.8 KB
  • 查看图片附件

你可能感兴趣的:(VS2008,字符编码,character,Unicode)