Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.2

Request #2782 Support RSS charset getter
Submitted: 2004-11-18 04:29 UTC Modified: 2005-10-22 05:03 UTC
From: johno at jsmf dot net Assigned: mj
Status: Closed Package: XML_RSS
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2004-11-18 04:29 UTC] johno at jsmf dot net
Description: ------------ I'm using XML_RSS to extract RSS feeds from various sites. The problem is that with XML_RSS you cannot get the character set of RSS feeds. Please support something like XML_RSS::getCharset(); to fix this problem.

Comments

 [2005-05-25 11:46 UTC] mj
I'm a bit confused by what you mean with character set. Could you give me an example?
 [2005-10-16 15:37 UTC] david at buro9 dot com
Well, if the title contains special characters. Imagine a music news feed that had Björk in either the title or description for example. At the moment, that is coming out of XML_RSS in a bit of a mess... it would be nice to have it escaped, or the charset announced so that we could handle it appropriately.
 [2005-10-22 04:08 UTC] caddata
This small patch on XML_RSS class solves this problem for me *** RSS-old.php 2005-10-22 10:56:45.252567002 +0200 --- RSS.php 2005-10-22 10:57:40.773859782 +0200 *************** *** 125,131 **** * @param mixed File pointer or name of the RDF file. * @return void */ ! function XML_RSS($handle = '') { ! $this->XML_Parser(); --- 125,132 ---- * @param mixed File pointer or name of the RDF file. + * @param string SRC-Encoding of the RDF file * @return void */ ! function XML_RSS($handle = '', $srcenc = 'ISO-8859-1') { ! $this->XML_Parser($srcenc); I think, it would be nice to add this patch to the next version of XML_RSS.
 [2005-10-22 04:53 UTC] at php dot net
In fact such a patch has been in CVS for a long time, but it was never released. I'll try to get out a new release of XML_RSS as soon as possible.
 [2005-10-22 05:03 UTC] mj
I've released a beta version of XML_RSS so that you guys can test the changes: http://www.pear.php.net/get/XML_RSS-0.9.9.tgz Feedback appreciated!