Change encoding on a per file or per extension basis

后端 未结 3 409
不思量自难忘°
不思量自难忘° 2020-12-17 10:43

I\'m using Microsoft Visual Studio Express 2012 for Web. It seems that every file which I open with it gets encoded into UTF-8. For most files which are going to be web-fa

3条回答
  •  孤街浪徒
    2020-12-17 11:13

    Open the problematic file in Visual Studio and...

    • On the File menu, click Advanced Save Options.
    • In the Encoding dropdown, select Unicode (UTF-8 … or the encoding you require.
    • Click OK.

    Also see: how to change source file encoding in csharp project (visual studio / msbuild machine)?

提交回复
热议问题