UTF-8 without BOM

前端 未结 10 1787
爱一瞬间的悲伤
爱一瞬间的悲伤 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:54

    Recently I found this tiny command-line tool which adds or removes the BOM on arbitary UTF-8 encoded files: UTF BOM Utils (new link at github)

    Little drawback, you can download only the plain C++ source code. You have to create the makefile (with CMake, for example) and compile it by yourself, binaries are not provided on this page. However, for a software developer this should not be any issue.

提交回复
热议问题