Mryqu's Notes


  • 首页

  • 搜索
close

Visual Studio: 使用简体中文(GB2312)编码加载文件, 有些字节已用Unicode替换字符更换

时间: 2015-12-21   |   分类: Tool     |   阅读: 39 字 ~1分钟

遭遇下列VS2010错误: Some bytes have been replaced with the Unicodesubstitution character while loading file base64.cpp with ChineseSimplified (GB2312) encoding. Saving the file will not preserve theoriginal file contents. Visual Studio: 使用简体中文(GB2312)编码加载文件, 有些字节已用Unicode替换字符更换我的Visual Studio已经勾选了Auto-detect UTF-8 encoding withoutsignature:Visual Studio: 使用简体中文(GB2312)编码加载文件, 有些字节已用Unicode替换字符更换 Ultraedit不能正常显示base64.cpp,但Sublime Text能正常显示。 Visual Studio: 使用简体中文(GB2312)编码加载文件, 有些字节已用Unicode替换字符更换原因是base64.cpp并不是UTF-8编码,但是包含一个十六进制为"E9"的字符,即带重音符的e。由于我的系统locale是RPC,所以显示不正常,估计系统locale改成CP1252 - Windows 拉丁语1代码页就可以了。用Sublime Text将其转存为UTF-8编码当然也可以。

标题:Visual Studio: 使用简体中文(GB2312)编码加载文件, 有些字节已用Unicode替换字符更换
作者:mryqu
声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 3.0 CN 许可协议。转载请注明出处!

#visual studio# #2010# #unicode# #replaced#
[C++]遭遇error C2039: 'min' : is not a member of 'std'
[C++] Building twitcurl Library in Unix platform
  • 文章目录
  • 站点概览

Programmer & Architect

662 日志
27 分类
1472 标签
GitHub Twitter FB Page
© 2009 - 2023 Mryqu's Notes
Powered by - Hugo v0.120.4
Theme by - NexT
0%