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)
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Problem with rss reader
-
- Rank: Registered User
- Registered: May 23, 2007
- Last visit: Feb 21, 2008
- Posts: 17
-
- Rank: Team Member
- Registered: Jun 12, 2005
- Last visit: Oct 21, 2009
- Posts: 38
The bug is also submit I think
http://noc.postnuke.com/tracker/index.php?func=detail&aid=15082&group_id=5&atid=101
++
--
Gilles... -
- Rank: Registered User
- Registered: May 23, 2007
- Last visit: Feb 21, 2008
- Posts: 17
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) -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
- Rank: Registered User
- Registered: May 23, 2007
- Last visit: Feb 21, 2008
- Posts: 17
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) -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
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. -
- Rank: Registered User
- Registered: May 23, 2007
- Last visit: Feb 21, 2008
- Posts: 17
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)
- Moderated by:
- Support
