warning C4819: The file contains a character that cannot be represented in the current code page
2017-06-10 09:16
676 查看
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 的警告信息,意思是文件中包含有不属于Unicode编码的字符,建议把文件保存为Unicode格式以避免数据丢失。
造成出现此警告的原因可能是该源文件之前有用别的文本编辑器打开并转换了文件的编码格式,我就是用了Visual Studio Code转换成了UTF-8格式。
解决方法 1:在VS中打开该源文件 -> Ctrl+A 全选 -> 菜单栏 File -> Advanced save options -> 选择编码方式:Unicode - codepage 1200 即可;
解决方法 2:在VS中打开该源文件 -> Save As 另存为 ->
在保存按钮下拉选择 Save with encoding -> 选择编码方式:Unicode - codepage 1200 即可。
loss 的警告信息,意思是文件中包含有不属于Unicode编码的字符,建议把文件保存为Unicode格式以避免数据丢失。
造成出现此警告的原因可能是该源文件之前有用别的文本编辑器打开并转换了文件的编码格式,我就是用了Visual Studio Code转换成了UTF-8格式。
解决方法 1:在VS中打开该源文件 -> Ctrl+A 全选 -> 菜单栏 File -> Advanced save options -> 选择编码方式:Unicode - codepage 1200 即可;
解决方法 2:在VS中打开该源文件 -> Save As 另存为 ->
在保存按钮下拉选择 Save with encoding -> 选择编码方式:Unicode - codepage 1200 即可。
相关文章推荐
- warning C4819: The file contains a character that cannot be represented in the current code page
- warning C4819: The file contains a character that cannot be represented in the current code page (93
- warning C4819: The file contains a character that cannot be represented in the current code page (93
- warning C4819: The file contains a character that cannot be represented in the current code page
- warning C4819: The file contains a character that cannot be represented in the current code page
- VSE: The file contains a character that cannot be represented in the current code page (936).
- Warning C4819:The file contains a character that can ot be represented in the current code page(936)
- Warning C4819:The file contains a character that can not be represented in the current code page(936
- 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).
- The file contains a character that cannot be represented in the current code page (936)
- The file contains a character that cannot be represented in the current code page
- warning C4819 解决方案 warning C4819: The file contains a character that cannot be represented in the c
- warning C4819 解决方案 warning C4819: The file contains a character that cannot be represented in the cu
- warning C4819 解决方案 warning C4819: The file contains a character that cannot be represented in the cu
- warning C4819 解决方案 warning C4819: The file contains a character that cannot be represented in the cu
- SQL 2005 Tips --事务处理The current transaction cannot be committed and cannot support operations that write to the log file
- 转载:Character data is represented incorrectly when the code page of the client computer differs from the code page of the database in SQL Server 2005
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI
- The Controls collection cannot be modified because the control contains code blocks
- The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>)