Skip to:
Content

BuddyPress.org

Opened 14 years ago

Closed 14 years ago

#2680 closed defect (bug) (duplicate)

RSS feed is blank

Reported by: chouf1's profile chouf1 Owned by:
Milestone: 1.5 Priority: normal
Severity: Version:
Component: Activity Keywords: rss
Cc:

Description

when in french, BP activity RSS feed is blank

This bug was gone a few version behind, but is back again... i don't really know why. Seems that an accent problem with UTF-8 is occuring....

In the past, i could replace in function bp_activity_feed_item_description
the line:

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' ) );

this is no more working.

Change History (3)

#1 @chouf1
14 years ago

  • Resolution set to fixed
  • Status changed from new to closed

here is the path to include in bp-activity-templatetags.php
For the feed title, replace
line 1031
$title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );

with
$title = strip_tags(html_entity_decode( $content[0],ENT_COMPAT,"UTF-8" )) ;

For the feed description, replace
line 1071
return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', , $content ) ) );

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

These changes provide correct translated accentuated characters like é (french)to é

Note: html_entity_decode charset default character (or unknowed character), dixit php manual, is ISO 8851-9

#2 @chouf1
14 years ago

  • Component changed from Core to Activity
  • Milestone changed from 1.2.6 to 1.3
  • Resolution fixed deleted
  • Status changed from closed to reopened

#3 @DJPaul
14 years ago

  • Resolution set to duplicate
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.