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
posted @ 2012-09-06 17:22  TobyDev  阅读(410)  评论(0编辑  收藏  举报