Add $blog_encoding to rss20.
authorGavin Carr <gonzai@users.sourceforge.net>
Tue, 2 Oct 2007 00:44:22 +0000 (00:44 +0000)
committerGavin Carr <gonzai@users.sourceforge.net>
Tue, 2 Oct 2007 00:44:22 +0000 (00:44 +0000)
gavinc/rss20

index 9ce4d0d8c9d27cb714e99b47fc20da7f111fa005..135db9de6f800e94b1c0f0a0991f3b32177f8bf8 100644 (file)
@@ -1,6 +1,6 @@
 # Blosxom Plugin: rss20
 # Author(s): Gavin Carr <gavin@openfusion.com.au>
 # Blosxom Plugin: rss20
 # Author(s): Gavin Carr <gavin@openfusion.com.au>
-# Version: 0.001001
+# Version: 0.001002
 # Requires: storydate, lastmodified2
 # Suggests: absolute
 # Follows:  storydate, lastmodified2
 # Requires: storydate, lastmodified2
 # Suggests: absolute
 # Follows:  storydate, lastmodified2
@@ -59,12 +59,12 @@ sub start {
 # --- Private subroutines
 
 sub _load_templates {
 # --- Private subroutines
 
 sub _load_templates {
-  $blosxom::template{$flavour}{'content_type'} = 'text/xml';
+  $blosxom::template{$flavour}{'content_type'} = 'text/xml; charset=$blog_encoding';
 
   $blosxom::template{$flavour}{'date'} = "\n";
 
   $blosxom::template{$flavour}{'head'} = <<'HEAD';
 
   $blosxom::template{$flavour}{'date'} = "\n";
 
   $blosxom::template{$flavour}{'head'} = <<'HEAD';
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="$blog_encoding"?>
 <rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
 <rss version="2.0"
     xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
@@ -77,7 +77,7 @@ sub _load_templates {
         <link>$url</link>
         <description>$blog_description</description>
         <dc:date>$lastmodified2::latest_iso8601</dc:date>
         <link>$url</link>
         <description>$blog_description</description>
         <dc:date>$lastmodified2::latest_iso8601</dc:date>
-        <dc:language>$blosxom::blog_language</dc:language>
+        <dc:language>$blog_language</dc:language>
         <dc:creator>mailto:$rss20::author_email</dc:creator>
         <dc:rights>$rss20::copyright</dc:rights>
         <admin:generatorAgent rdf:resource="$rss20::generator_url" />
         <dc:creator>mailto:$rss20::author_email</dc:creator>
         <dc:rights>$rss20::copyright</dc:rights>
         <admin:generatorAgent rdf:resource="$rss20::generator_url" />