我正在压缩JavaScript文件,压缩器抱怨我的文件中有字符.

如何搜索这些字符并将其删除?
unicode file utf-8 utf
我有一个带有BOM的UTF-8编码文件,想要删除BOM.是否有任何linux命令行工具从文件中删除BOM?
$ file test.xml test.xml: XML 1.0 document, UTF-8 Unicode (with BOM) text, with very long lines
linux command-line byte-order-mark file utf-8
file ×2
utf-8 ×2
byte-order-mark ×1
command-line ×1
linux ×1
unicode ×1
utf ×1