How do I remove  from the beginning of a file?

前端 未结 23 1061
攒了一身酷
攒了一身酷 2020-11-22 06:21

I have a CSS file that looks fine when I open it using gedit, but when it\'s read by PHP (to merge all the CSS files into one), this CSS has the following characters prepend

23条回答
  •  终归单人心
    2020-11-22 06:46

    In Notepad++, choose the "Encoding" menu, then "Encode in UTF-8 without BOM". Then save.

    See Stack Overflow question How to make Notepad to save text in UTF-8 without BOM?.

提交回复
热议问题