Opened 14 years ago
Closed 14 years ago
#2680 closed defect (bug) (duplicate)
RSS feed is blank
Reported by: | 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.
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