[buddypress-trac] [BuddyPress] #3040: Encoding mismatch in activity feed item title

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Tue Feb 1 10:11:16 UTC 2011

#3040: Encoding mismatch in activity feed item title
 Reporter:  dubcheck  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:  Awaiting Review
Component:  Activity  |    Version:  1.2.6
 Keywords:  encoding  |
 In 'bp_get_activity_feed_item_title' a short activity info is build which
 consists of two parts: the part before the colon (let's call it 'title')
 and the part after (the 'excerpt'). These to parts are encoded differently
 which results in weird characters in either of the parts when output to
 the browser.

 I had no time to go into it deeper but it seems to me that the
 'utf8_encode' should be removed in the following line (1031):

 $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] )
 ) ) );

 Changing it to

 $title = trim( strip_tags( html_entity_decode( $content[0] ) ) );

 works fine for me and both parts are encoded the same way.

 Please cross-check and fix in bp-activity/bp-activity-templatetags.php

 NB: I use version 1.2.7 but cannot select in ticket form ..

Ticket URL: <https://trac.buddypress.org/ticket/3040>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list