<0xEF> character showing up in files. How to remove them?

后端 未结 13 1139
甜味超标
甜味超标 2020-11-29 18:08

I am doing compressing of JavaScript files and the compressor is complaining that my files have  character in them.

How can I search for these cha

13条回答
  •  感情败类
    2020-11-29 18:34

    The 'file' command shows if the BOM is present:

    For example: 'file myfile.xml' displays: "XML 1.0 document, UTF-8 Unicode (with BOM) text, with very long lines, with CRLF line terminators"

    dos2unix will remove the BOM.

提交回复
热议问题