Subject: | 'enconding' attribute ignored on RSS v0.9 objects |
perl 5.6.1
XML:RSS 0.97
Debian GNU/Linux Woody (3.0)
Kernel 2.2.19
glibc 2.2.5
I'm not sure if the standards allow this (putting an 'enconding' attibute in RSS 0.9 documents) but it's common practice and very useful indeed.
patch:
--- RSS.pm Fri Aug 9 21:52:07 2002
+++ RSS.pm.new Fri Aug 9 21:35:47 2002
@@ -429,7 +429,7 @@
my $output;
# XML declaration
- $output .= '<?xml version="1.0"?>'."\n\n";
+ $output .= '<?xml version="1.0" encoding="'.$self->{encoding}.'"?>'."\n\n";
# RDF root element