Home » XML » XML_RSS » Bug #2310
xml_rss constructor should pass xml_parser options
Details
| Request #2310 | xml_rss constructor should pass xml_parser options |
|---|---|
| Submitted | 2004-09-10 12:47 UTC |
| From | nospam2 at multimedia-werkstatt dot com |
| Assigned | mj |
| Status | Closed |
| Package | XML_RSS |
| PHP Version | 4.3.5 |
| OS | any |
| Roadmaps | (Not assigned) |
Comments
[2004-09-10 12:47 UTC] nospam2 at multimedia-werkstatt dot com
Description:
------------
the constructor should pass encoding parameters to the xml_parser like this one:
/**
* Constructor
*
* @access public
* @param mixed File pointer or name of the RDF file.
* @return void
*/
function XML_RSS($handle = '', $srcenc = null, $mode = 'event', $tgtenc = null)
{
$this->XML_Parser( $srcenc, $mode, $tgtenc);
if (@is_resource($handle)) {
$this->setInput($handle);
} elseif ($handle != '') {
$this->setInputFile($handle);
} else {
$this->raiseError('No filename passed.');
}
}
this is required to support feeds with different encodings (like utf-8 or something..)