[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
Wed Dec 23 23:46:30 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 reporter-feedback
-------------------------------+--------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:24 westi]:
 > OK the 2.9 SimplePie has one change over the 2.8 one in the function
 {{{change_encoding}}}
 >
 > The test which starts {{{function_exists('mb_convert_encoding')}} has an
 extra check for
 > {{{@mb_convert_encoding("\x80", 'UTF-16BE', $input) !== "\x00\x80"}}}
 >
 > If you revert just this change does it work in 2.9?

 I'm afraid it doesn't. and that's normal, since it checks for mb_string
 beforehand.

 > I can't see how that function can work in 2.8 and not in 2.9 if neither
 iconv or mb_convert_encoding are present.

 Because it doesn't try to convert in SP 1.1.3. I've yet to identify why it
 tries to so in 2.9 though.

 D.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11219#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list