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

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Apr 7 22:50:36 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):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  1.3 => 1.2.4


Comment:

 i solved the accent problem for title and description.

 For the title:910
 `
 function bp_get_activity_feed_item_title()
 replace
 $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] )
 ) ) );

 by

 $title = trim( strip_tags( utf8_encode( html_entity_decode( $content[0] )
 ) ) );
 and
 //return apply_filters( 'bp_get_activity_feed_item_title', $title );

 by

 return apply_filters( 'bp_get_activity_feed_item_title', utf8_decode(
 str_replace( ':', '', $title ), ENT_COMPAT, 'UTF-8' ) );
 `

 and for the description:944

 `
 function bp_get_activity_feed_item_description()
 replace
 return apply_filters( 'bp_get_activity_feed_item_description',
 html_entity_decode( str_replace( '%s', '', $content ) ) );

 by

 return apply_filters( 'bp_get_activity_feed_item_description',
 html_entity_decode( str_replace( '%s', '', $content ), ENT_COMPAT, 'UTF-8'
 ) );
 `

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


More information about the buddypress-trac mailing list