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

后端 未结 13 1135
甜味超标
甜味超标 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:38

    You can easily remove them using vim, here are the steps:

    1) In your terminal, open the file using vim:

    vim file_name
    

    2) Remove all BOM characters:

    :set nobomb
    

    3) Save the file:

    :wq
    

提交回复
热议问题