James Kilfiger - 2004-09-18

If I am parsing a rss file like this

my $rss->new XML::RSS;
$rss->parse('<?xml version="1.0" encoding="x-sjis-cp932"?> ... ');

print $rss->as_string();

The rss file is converted to UTF-8. 

I can prevent this by declaring
$rss=new XML::RSS (encoding=>"x-sjis-cp932");
but I want it to pick up the encoding from the rss file.

Can it be done?