[buddypress-trac] [BuddyPress] #2194: RSS feed serious accent problem

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Mon Apr 12 10:23:13 UTC 2010


#2194: RSS feed serious accent problem
----------------------+-----------------------------------------------------
 Reporter:  chouf1    |        Owner:        
     Type:  defect    |       Status:  closed
 Priority:  major     |    Milestone:  1.2.4 
Component:  Activity  |   Resolution:  fixed 
 Keywords:            |  
----------------------+-----------------------------------------------------
Changes (by chouf1):

 * cc: chouf1 (added)
  * status:  reopened => closed
  * resolution:  => fixed


Comment:

 OK, this was a bit weird to debug, but finally we found the trick.

 Here are the final results - tested on bp-fr.net, but should be tested on
 other language site (de, es, dk, etc)

 bp-activity/bp-templatetags.php

 line 901 function bp_get_activity_feed_item_title()
 replace line 910 by
 $title = trim(html_entity_decode(strip_tags($content[0]),ENT_COMPAT,
 'UTF-8' ));

 line 944 function bp_get_activity_feed_item_description()
 replace line 952 by
 return apply_filters( 'bp_get_activity_feed_item_description',
 html_entity_decode( str_replace( '%s', '', $content ), ENT_COMPAT, 'UTF-8'
 ) );


 Additionnal (not innocent) question
 Why does the title content an CDATA ? This is not usual, because UTF8
 should always be used in RSS.

 Except if the title is not UT8 somewhere. If you could explain me this, i
 would appreciate, thanks !

-- 
Ticket URL: <http://trac.buddypress.org/ticket/2194#comment:6>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list