Grepping for files with byte order marks (BOM)

Finding offending php files with UTF8 byte order marks (BOM):

grep $'\xEF\xBB\xBF' * -rl | grep .php

Having byte order marks present in any of the Wordpress or bbPress files causes the content not to validate to XHTML 1.0 Strict.

Tags: , ,

Leave a Reply