Call decode_utf8() to generate clean output in HTML feeds
authordbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Jan 2010 04:22:13 +0000 (04:22 +0000)
committerdbs <dbs@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 14 Jan 2010 04:22:13 +0000 (04:22 +0000)
Tested on Debian Lenny and Ubuntu Karmic

git-svn-id: svn://svn.open-ils.org/ILS/trunk@15319 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm

index 6afdc0c..4418c72 100644 (file)
@@ -874,7 +874,7 @@ sub bookbag_feed {
 
 
        print "Content-type: ". $feed->type ."; charset=utf-8\n\n";
-       print $U->entityize($feed->toString) . "\n";
+       print $U->entityize(decode_utf8($feed->toString)) . "\n";
 
        return Apache2::Const::OK;
 }
@@ -951,7 +951,7 @@ sub changes_feed {
 
 
        print "Content-type: ". $feed->type ."; charset=utf-8\n\n";
-       print $U->entityize($feed->toString) . "\n";
+       print $U->entityize(decode_utf8($feed->toString)) . "\n";
 
        return Apache2::Const::OK;
 }