How to fix “Byte-Order Mark found in UTF-8 File” validation warning

后端 未结 5 2101
旧时难觅i
旧时难觅i 2020-12-14 00:33

I\'ve got an xhtml page validating under xhtml strict doctype -- but, I getting this warning which I trying to understand -- and correct.

Just, how do I locate this e

5条回答
  •  [愿得一人]
    2020-12-14 00:54

    For someone using Visual Studio seeing the annoying red dot on bitbucket on 2018, just go to Visual Studio to "File" -> "File.cshtml Save As..." and select "Save with Encoding...":

    Then it will popup a screen so that you can change the Encoding, try and look all the way down in the list until you see "Unicode (UTF-8 without signature) - Codepage 65001":

    After this, just overwrite your file and upload it to your repo and the BOM will be gone.

    Hope it helps. Leo.

提交回复
热议问题