English 中文(简体)
如何在VS.NET 2005中将源文件的默认编码设置为UTF-8
原标题:
  • 时间:2009-04-03 01:37:53
  •  标签:

I use Chinese in my comments and configs. And after I auto merge and check in source files, they become messy codes.

I guess the reason is TFS merge them by UTF-8 encoding but my VS.NET is using gb2312 encoding. I know I can get and change each file from menu [file->advance save option] Can t I set VS.NET 2005 always create and save C# files in UTF-8 encoding?

问题回答

当文件在VS内部创建时,VS默认为UTF-8。如果文件是在外部使用其他编码创建(或修改)的,则除非您“另存为”->;UTF-8型

奇怪的是:我在工作中的VS2005以及在家中的vs2008和VS2005副本都默认为Utf-8。





相关问题
热门标签