编码方式是它们的表示方法。比如:ASCII、ISO8859-1、UCS、Unicode、UTF、GB2312等等。
参见无博文:
代码文件如果不使用正确的编码,Compiler就有可能报Warning 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.
中文意思是:该文件包含不能在当前代码页中表示的字符,请将文件保存为Unicode格式,以防止数据丢失。
一般来说,这个警告没有什么影响。要想去掉这个警告的方法有:
(1)转换Code文件为Unicode格式;
(2)在Project -> Properties -> Configuration Properties -> C/C++ -> Advance 的 Disable Specific Warnings 中添加相应的警告编号:4819;
(3)或找出不符合Unicode格式的文件,然后在该文件的开始处加入下面的语句:
# pragma warning (disable:4819)