Fix UTF-8 issues in quotes.
authorroot <root@pannekake.samfundet.no>
Thu, 26 Apr 2007 23:06:47 +0000 (01:06 +0200)
committerroot <root@pannekake.samfundet.no>
Thu, 26 Apr 2007 23:06:47 +0000 (01:06 +0200)
perl/Sesse/pr0n/Common.pm

index 8227c80db13562418ca335fc90bfd3da14bf2bd5..20dacfb49db4602bb711ccd89a844b0d532f4b6f 100644 (file)
@@ -91,7 +91,7 @@ sub header {
                $quote = LWP::Simple::get("http://itk.samfundet.no/include/quotes.cli.php");
                $quote = "Error: Could not fetch quotes." if (!defined($quote));
        }
-       Sesse::pr0n::Templates::print_template($r, "header", { title => $title, quotes => $quote });
+       Sesse::pr0n::Templates::print_template($r, "header", { title => $title, quotes => Encode::decode_utf8($quote) });
 }
 
 sub footer {