SHELL下查找文件中的UTF8 BOM头 具体命令如下: grep -r $'\xEF\xBB\xBF' /var/www 用vim去除utf-8 BOM 1.’去掉utf-8 BOM :set nobomb 2.’保留utf-8 BOM :set bomb