Home » XML » XML_RSS » Bug #1567
Does not support UTF-8 encoded documents
Details
| Submitted | 2004-06-07 08:50 UTC |
|---|---|
| From | baldure at hi dot is |
| Status | No Feedback |
| Package | XML_RSS |
| PHP Version | 4.3.2 |
| OS | All |
| Roadmaps | (Not assigned) |
Comments
[2004-06-07 08:50 UTC] baldure at hi dot is
Description:
------------
I am using the package in the simplest way, opening and viewing rss documents. Most of them work fine but those who are UTF-8 encoded come out mangled.
Document example:
http://domsmalaraduneyti.is/view/common/content/rss?WebCategoryID=1014&total=3
Reproduce code:
---------------
$source =& new XML_RSS($this->url);
if(PEAR::isError($source)){
die($source->getMessage());
}
$parseRes = $source->parse();
if(PEAR::isError($parseRes)){
return $parseRes->toString();
}else{
$this->items = $source->getItems();
}
...
foreach ($this->items as $item) {
Expected result:
----------------
Fréttir frá dóms- og kirkjumálaráðuneyti
• Nefnd til að ræða álitaefni er s...
• Auglýsing um framboð og kjör fors...
• Umsækjendur um embætti héraðsdómara...
Actual result:
--------------
Fréttir frá dóms- og kirkjumálaráðuneyti
• Nefnd til að ræða álitaefni er s...
• Auglýsing um framboð og kjör fors...
• Umsækjendur um embætti héraðsdó...