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

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

    I'm suggest the use of "dos2unix" tool, please test to run dos2unix ./thefile.js.

    If necessary try to use something like this for multiple files:

    for x in $(find . -type f -exec echo {} +); do dos2unix $x ; done
    

    My Regards.

提交回复
热议问题