Subject: | XML::RAI with latin 1 chars |
Date: | Tue, 4 Dec 2007 13:46:10 +0100 |
To: | bug-XML-RAI [...] rt.cpan.org |
From: | "Stefan Lidman" <lidden [...] gmail.com> |
Hi
The XML::RAI module works very well but the
content method mangels latin 1 characters. I
have not looked at the source and also don't
know if other methods have the same problem.
/Stefan Lidman
<code>
use XML::RAI;
my $doc = <<DOC;
<?xml version="1.0" encoding="iso-8859-1"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="http://purl.org/rss/1.0/">
<channel>
<title>tima thinking outloud</title>
<link>http://www.timaoutloud.org/</link>
<description></description>
<dc:language>en-us</dc:language>
<item>
<title>Commercial Music Again.</title>
<description>Last å year ä I ö made Å a Ä post Ö about music used
</description>
<guid isPermaLink="true">
http://www.timaoutloud.org/archives/000337.html
</guid>
<category>Musings</category>
<author>tima</author>
<pubDate>Sun, 18 Jan 2004 14:09:03 GMT</pubDate>
</item>
</channel>
</rss>
DOC
my $rai = XML::RAI->parse($doc);
foreach my $item ( @{$rai->items} ) {
print $item->content."\n";
}
</code>