[wp-trac] [WordPress Trac] #12390: UTF-8 theme files lead to double Byte Order Mark
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 26 19:28:43 UTC 2010
#12390: UTF-8 theme files lead to double Byte Order Mark
--------------------------+-------------------------------------------------
Reporter: varsity | Owner: hakre
Type: defect (bug) | Status: new
Priority: low | Milestone: Unassigned
Component: Charset | Version: 2.9.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
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.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12390>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list