VS C4819 编译错误解决方法

偶尔用别人的代码,出现:

warning C4819: 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

百度基本的推荐做法是将文件修改编码另存为一下。有时很好奇究竟是声明字符导致该错误,直接删掉就不可以了。

这里提供另一种方法,看图:

 

我这里完美解决,删除之,警告消失:

 

posted @ 2016-11-05 20:51  Through  阅读(1018)  评论(0编辑  收藏  举报