Visual Studio 2010 将文件更改为错误的编码
我已经为此烦恼了很长时间了。不知何故,Visual Studio 2010(VS2008以及IIRC)将我的文件的编码从“Unicode(带有签名的UTF-8) - 代码页65001”更改为“西欧(Windows) - 代码页1252”。
我隐约知道是 ReSharper 或 VisualSVN 正在更改字符编码,但我还没有找到任何真正的证据。
它似乎没有发生在任何特定的点(看似随机),当我进行网络开发时,这是一个很大的问题,因为这些更改使页面显示奇怪的字符>:(
有人知道该怎么做吗?
I've been annoyed by this for a long time now. Somehow Visual Studio 2010 (VS2008 too IIRC) changes the encoding of my files from "Unicode (UTF-8 with signature) - Codepage 65001" to "Western European (Windows) - Codepage 1252".
I have a faint idea that it's either ReSharper or VisualSVN, that's doing the character encoding changes, but I have not been able to find any real proof.
It seems to happen at no specific point (seemingly random), which is quite a problem, when I am doing web-development, as the changes makes the pages display strange characters >:(
Does anyone have a clue what to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这显然是 ReSharper 5.1 EAP 版本的问题。现在已在最新的公开版本中修复。
This was apparently a problem with ReSharper 5.1 EAP versions. It is now fixed in the latest public release.