in reply to •Re: XML::RSS
in thread XML::RSS

Ok, I've done some more reading - let me see if I've got this right:

LWP::Simple returns HTML which is encoded in ISO-8859-1 (Latin-1).
XML::Parser defaults to UTF-8 (unicode) if the XML does not specify an encoding.

So using:
my $rss = new XML::RSS( 'encoding' => 'ISO-8859-1' );

should work.

It doesn't.

Replies are listed 'Best First'.
Re: Re: •Re: XML::RSS
by rjray (Chaplain) on Mar 21, 2003 at 23:26 UTC

    Specifying the encoding like that is only used when creating an RSS stream using the library. It won't affect a parsed input stream's encoding.

    --rjray