UTF-8 without BOM

前端 未结 10 1887
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 15:31

I have javascript files that I need them to be saved in UTF-8 (without BOM), every time I convert them to the correct format in Notepad++, they are reverted back to

10条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 15:34

    UTF-8 - "Save As" (Without Signature) Default - Request to include Default for UTF Without Signature

    VS 2017 natively supports EditorConfig so a recommended solution is to add .editorconfig file to your code base and set charset => utf-8. Then once you save a file it will be saved as UTF-8 without BOM.

提交回复
热议问题