PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_RSS » Bug #1567

Does not support UTF-8 encoded documents

Details

Submitted2004-06-07 08:50 UTC
Frombaldure at hi dot is
StatusNo Feedback
PackageXML_RSS
PHP Version4.3.2
OSAll
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ó...