I keep recieving warning: Byte-Order Mark found in UTF-8 File when validating the site.
Also, there's a nasty error

Line 1, Column 0: character "" not allowed in prolog.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 

I don't have BOM files in my theme, but the error is persistent. If I fall back to original Garland theme, the error is still here.

What other files other then files inside themes/mytheme folder should I check for BOM? What files can possibly cause this extra character inserted to the output during page generation?

I'd love to have shortlist of suspicious files rather then starting from clean install. Please enlighten me.

Comments

Miszel’s picture

I have the same problem now. Have you come across any solution?

Miszel’s picture

Ok, I sorted this out. Apart from the theme files, all files that are included by bootstrap.inc should be checked such as .inc (in the include folder and in modules' folders) and .module files. Do not forget to check index.php too.

The Byte Order Mark causes a problem with Internet Explorer forcing it to run in its quirks mode which will change the appearance of the page. This should be solved before trying to sort out IE problems by changing css.

Some info on BOM is here: http://www.htmlpedia.org/wiki/Sp_46