[wp-trac] Re: [WordPress Trac] #6701: XmlRpc responses truncated
due to UTF-8 BOM
WordPress Trac
wp-trac at lists.automattic.com
Sun Apr 13 00:06:48 GMT 2008
#6701: XmlRpc responses truncated due to UTF-8 BOM
-----------------------------------+----------------------------------------
Reporter: aaron.oneal | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: XML-RPC | Version: 2.5
Severity: normal | Resolution:
Keywords: UTF-8 BOM Live Writer |
-----------------------------------+----------------------------------------
Comment (by azaozz):
You've mentioned Live Writer, could that be something added by it when
importing UTF-8 feeds? Most Windows text editors add BOM to UTF-8 files,
including Notepad...
In any case it's better to strip the BOM than to increase the Content-
Length header. Something like this would work:
{{{
$xml = preg_replace("/^\x{feff}/u", "", $xml);
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/6701#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list