Fix Some bytes have been replaced with the Unicode substitution character while loading file XXX.cs

When we use <strong>visual studio</strong> open source file or any other file, we may encounter below problem:

&nbsp;

<strong>File Load</strong>

<strong>Some bytes have been replaced with the Unicode substitution character while loading file XXX.cs with Chinese Simplified (GB2312) encoding. Saving the file will not preserve the original file contents.</strong>

&nbsp;

I search out on the web, most of the answer is like below:

Use notepad++(or any other text editer) and edited every file in the project in the end of every file there is NullNullNullNull line remove it and click ctrl+S do this to all files

&nbsp;

But if there are lots of files, it is difficult and tuff to do.  What‘s is the reason for this problem?

博客已搬家至: http://www.kai-zhou.com,
 其他博客已停止更新,欢迎访问:Fix Some bytes have been replaced with the Unicode substitution character while loading file XXX.cs  查看文章的最新版本,获得解决办法.

时间: 2024-10-11 07:35:50

Fix Some bytes have been replaced with the Unicode substitution character while loading file XXX.cs的相关文章

Fix Some bytes have been replaced with the Unicode substitution character while loading file XXX.cs with Chinese Simplified (GB2312) encoding

When we use <strong>visual studio</strong> open source file or any other file, we may encounter below problem:   <strong>File Load</strong> <strong>Some bytes have been replaced with the Unicode substitution character while l

python安装失败提示“one or more issues caused the setup to fail . Please fix the issues and then retry setup.For more information see the log file”

换了项目组,换了新电脑,重装Python时遇到提示如下图所示: 原因:需要安装Windows 7 Service Pack 1 直接点击“update your machine”即可跳转到指定页面,有解决方法和下载链接 我嫌弃下载文件太大,选择安装Python3.4版本,即可安装成功. 原文地址:https://www.cnblogs.com/tianzhouDAN/p/8289199.html

[git] -- warning: LF will be replaced by CRLF in app/app.iml. The file will have its original line endings in your working directory.

遇到这个错误,因为是git的换行符检查功能.之前代码是在MAC下,后来放在windows系统下,git add .的时候报这个错误. core.safecrlf git 提供了一个换行符检查功能(core.safecrlf),可以在提交时检查文件是否混用了不同风格的换行符. false --- 不做任何检查: warn --- 在提交的时候检查并报告: true --- 在提交时检查,如果发现混用则拒绝提交: 建议使用最严格的true选项. core.autocrlf 如果用两台不同系统的电脑写

SqlException with message &quot;Caught java.io.CharConversionException.&quot; and ERRORCODE=-4220

Technote (troubleshooting) Problem(Abstract) When an application uses the IBM Data Server Driver for JDBC and SQLJ (also known as the JCC driver) and is connected to a database with code set UTF-8 (code page 1208), it throws an SqlException with mess

[hadoop]Hadoop源码分析-Text

Text是Hadoop中的一个Writable类,定义了Hadoop中的其中的数据类型以及操作. This class stores text using standard UTF8 encoding. It provides methods to serialize, deserialize, and compare texts at byte level. The type of length is integer and is serialized using zero-compresse

Microsoft 防跨站点脚本库AntiXSS Library

AntiXSS 库目前处于版本 4.2.1,下载地址:http://www.microsoft.com/download/en/details.aspx?id=28589.它经历了一次非常棒的重新编写过程,并且就安全性而言,它提供了比 ASP.NET 附带的编码器更好的 HTML 编码器. 并不是说 Server.HtmlEncode 有什么问题,只是它侧重于兼容性而不是安全性. AntiXSS 使用不同的方法进行编码. 有关详细信息,请访问 msdn.microsoft.com/securit

Python中的字符串与字符编码

原文地址:点击这里 本节内容: 前言 相关概念 Python中的默认编码 Python2与Python3中对字符串的支持 字符编码转换 一.前言 Python中的字符编码是个老生常谈的话题,同行们都写过很多这方面的文章.有的人云亦云,也有的写得很深入.近日看到某知名培训机构的教学视频中再次谈及此问题,讲解的还是不尽人意,所以才想写这篇文字.一方面,梳理一下相关知识,另一方面,希望给其他人些许帮助. Python2的 默认编码 是ASCII,不能识别中文字符,需要显式指定字符编码:Python3的

Python-编码这趟浑水

最近听Alex讲到python编码,还特意用博客讲解,觉得问题严重了,于是翻看各种博客,先简单的对编码错误做一个总结,其他的后续慢慢补上,还得上班.还得学习.还得写博客?感觉有点吃不消了.各位大神不喜勿喷啊.本人是Mac电脑,终端默认编码格式utf-8 原文地址 Python编码错误及解决办法 字符串是python中最常用的数据类型,而且很多时候会用一些不属于ascii字符集的字符,这是就会抛出UnicodeDecodeError:ascii codec can't decode byte 0x

Fix header line conflict between tabbar and cedet

Fix header line conflict between tabbar and cedet Table of Contents 1. Problem Description 2. fix process 3. tabbar install 1 Problem Description When I open .c/.cpp file, tabbar header line is occupied by cedet semantic 2 fix process add (global-sem