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
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.