VC工程里有个文件,只有文件里写了汉字,就报警告C4819 Warning C4819:The file contains a character that can ot be represented in the current code page(936). save the file in unicode format to prevent data loss. 初步猜测,文件中确实有936代码页不能表示的字符. 随后验证了下,没有这样的字符,只要出现汉字就报警. 通过 VS菜单.文件->…
文章来自:http://www.cppblog.com/API/archive/2012/11/12/195056.aspx 编译VC++程序的时候出现如下提示警告: 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 因为只是一个war…
一. Warning C4819:The file contains a character that can ot be represented in the current code page(936). save the file in unicode format to prevent data loss. 中文意思是:该文件包含不能在当前代码页中表示的字符,请将文件保存为Unicode格式,以防止数据丢失. 一般来说,这个警告没有什么影响.要想去掉这个警告的方法有: (1)转换Code…
编译Chromium时出现 warning C4819: The file contains a character that cannot be represented in the current code page (949). Save the file in Unicode format to prevent data loss 这个警告其实不影响文件内容以及正常编译的,但是由于chromium的编译设置严格,默认将警告视为错误,所以出现这个警告时会视为错误导致编译终止.解决办法: 将…
用Visual Studio2015 编译时,遇到如下编译错误: error C2220: warning treated as error - no 'object' file generated 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 dat…
编译VC++程序的时候出现如下提示警告: 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 因为只是一个warning,不影响正常编译,所以并没有引起大家多大的关注.我一开始的时候也是如此.但是后来出现的次数多了,发现这个警告和在程序D…
编译VC++程序的时候出现如下提示警告: 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 因为只是一个warning,不影响正常编译,所以并没有引起大家多大的关注.我一开始的时候也是如此.但是后来出现的次数多了,发现这个警告和在程序D…
问题描述:在使用VS2010编译CUDA程序时,有很多C4819警告: warning C4819:The file contains a character that cannot be represented in the current codepage (936). Save the file in Unicode format to prevent data loss:这个警告的意思是:在该文件中有一个或多个字符不是Unicode字符!要求把这个字符变成Unicode字符防止数据丢失.…
偶尔用别人的代码,出现: warning C4819: The file contains a character that cannot be represented ). Save the file in Unicode format to prevent data loss 百度基本的推荐做法是将文件修改编码另存为一下.有时很好奇究竟是声明字符导致该错误,直接删掉就不可以了. 这里提供另一种方法,看图:…
代码如下: HelloWorldScene.h #ifndef __HELLOWORLD_SCENE_H__#define __HELLOWORLD_SCENE_H__ #include "cocos2d.h"class HelloWorld : public cocos2d::Layer{public: // there's no 'id' in cpp, so we recommend returning the class instance pointer stati…