UTF-8 theme files lead to double Byte Order Mark
|Reported by:||varsity||Owned by:||hakre|
At some point I switched my theme's header.php to UTF-8. This has led to WordPress generating pages with the Unicode Byte Order Mark (hex: EF BB BF / ASCII: ï»¿) repeated twice: one instance added by the code, correctly, and the other inserted when parsing the header file.
This has come to light thanks to the current Steam beta (http://store.steampowered.com/uiupdate/), in which WebKit plain refuses to load application/xhtml+xml pages with two BOMs.
I can't explain why Chrome and Safari and other browsers don't falter in the same way, but it seems unwise to assume that it's because this "double BOM" behaviour is acceptable. It should be fixed to prevent future problems.
Change History (5)
- Keywords close added
- Milestone changed from Unassigned to Future Release