[wp-trac] Re: [WordPress Trac] #8464: XML Parsing Error: undefined entity

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 3 01:09:05 GMT 2008


#8464: XML Parsing Error: undefined entity
-------------------------------+--------------------------------------------
 Reporter:  dome90             |        Owner:  nbachiyski
     Type:  defect             |       Status:  new       
 Priority:  normal             |    Milestone:  2.7       
Component:  i18n               |      Version:  2.7       
 Severity:  normal             |   Resolution:            
 Keywords:  XML Parsing Error  |  
-------------------------------+--------------------------------------------
Comment (by nbachiyski):

 Replying to [comment:1 DD32]:
 > the ü entity is a valid entity, however appears to not be included
 in the refence list which the XML parser is using.
 >
 > WP includes a function ent2ncr() which would convert ü to ü,
 would that be a valid solution for this? Or is this not a 'real' problem
 with WordPress, and the XML parser isnt reconising the non-english
 entities?

 The only named entities part of the XML standard are quot, amp, apo, gt
 and lt, all the others are part of HTML's DTD. {{{ent2ncr}}} was
 introduced exactly for this reason: {{{add_filter('the_content_rss',
 'ent2ncr', 8);}}}

 Wrapping all translations in {{{ent2ncr()}}} will do the trick, but I will
 think of a more general solution. Next time we will surely forget to add
 it.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/8464#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list