[wp-trac] [WordPress Trac] #11219: could not be converted to UTF-8 / WordPress should cache failed feed fetches so as to avoid overloading feed sources
WordPress Trac
wp-trac at lists.automattic.com
Thu Dec 24 00:07:16 UTC 2009
#11219: could not be converted to UTF-8 / WordPress should cache failed feed
fetches so as to avoid overloading feed sources
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 2.9.1
Component: Optimization | Version: 2.9
Severity: major | Keywords: has-patch tested
-------------------------------+--------------------------------------------
Changes (by Denis-de-Bernardy):
* keywords: has-patch tested reporter-feedback => has-patch tested
Comment:
update: SP 1.1.3 works because it improperly detects UTF-8 feeds as
ISO-8859-1.
{{{
// Change the encoding to UTF-8 (as we
always use UTF-8 internally)
if ($utf8_data =
SimplePie_Misc::change_encoding($data, $encoding, 'UTF-8'))
{
// Create new parser
$parser =& new
$this->parser_class();
// If it's parsed fine
if ($parser->parse($utf8_data,
'UTF-8'))
{
var_dump($encoding);die;
// ISO-8859-1
}}}
Placing the same code in SP 1.2 never dies (it fails to create a parser in
the first place).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11219#comment:28>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list