Fork me on GitHub

Problem with rss reader  Bottom

  • Perhaps, this is not a bug, just a lack of understanding, but when I use the rss block to display the feeds of French website, all the accented caracters (éàâ) are replaced by hideous @$%. I think, this is a problem of character encoding but there is no available action about character encoding on the rss block or the feed reader. In the feed reader, I've found (file simplepie.inc) a line like that:

    // Change the encoding to UTF-8 (as we always use UTF-8 internally)
    $utf8_data = SimplePie_Misc::change_encoding($data, $encoding, 'UTF-8');

    but nowhere a way to change display encoding.

    May I have to write a modifier plugin to display my feeds correctly or what ?

    Thanks

    --
    "Power corrupts. PowerPoint corrupts absolutely."
    My personnal (french) Websites: http://www.xbee.net (PN .8)
    and http://fczone.xbee.net (PN 0.764)
  • Sorry, I've searched in the forum not in the NOC ...
    Thanks

    --
    "Power corrupts. PowerPoint corrupts absolutely."
    My personnal (french) Websites: http://www.xbee.net (PN .8)
    and http://fczone.xbee.net (PN 0.764)
  • The problem isn't as simple as the proposed fix in the bug report. If a site is already using UTF-8 encoding the fix will cause a double decode of the characters - same problem but different.

    Anyway i've now fixed this problem in SVN with a slightly modified plugin that checks for a site already using UTF-8 before decoding the title.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Ok, thank, I've already applied the fix propose previously in the NOC and it works for me. The simplepie.inc class seems to convert all to UTF8 so I need only a modifier plugin to convert to the correct charset but it's not very "user friendly", a global option would be a better thing... but more complicated I known.
    Another thing, I try to test the date of each RSS element but It seems not very easy, the syntax can be very different between feed origins, any ideas to easily test date in a RSS feed ?

    Thanks

    --
    "Power corrupts. PowerPoint corrupts absolutely."
    My personnal (french) Websites: http://www.xbee.net (PN .8)
    and http://fczone.xbee.net (PN 0.764)
  • Sorry but I don't know on that one. I've never really looked beyond display a simple feed. In theory the dates in an RSS feed should be of a standard form (i.e. RFC822). If a feed doesn't use this date then it's probably not a valid RSS feed.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Ok, I try to compare only RFC822 date in a first time !

    Thanks

    --
    "Power corrupts. PowerPoint corrupts absolutely."
    My personnal (french) Websites: http://www.xbee.net (PN .8)
    and http://fczone.xbee.net (PN 0.764)

This list is based on users active over the last 60 minutes.