Remove all Encode::decode_utf8 calls, as seemingly scalars from PostgreSQL comes...
[pr0n] / perl / Sesse / pr0n / Listing.pm
index 2cb1125277e3be0e92d8df47b29792902b7d2a6c..c8f93f249fae58c2ef8ba34ea9c093bf7e58eb5e 100644 (file)
@@ -48,7 +48,7 @@ sub handler {
                my $cloud = HTML::TagCloud->new;
 
                while (my $ref = $q->fetchrow_hashref()) {
-                       my $tag = Encode::decode_utf8($ref->{'tag'});
+                       my $tag = $ref->{'tag'};
                        my $html = HTML::Entities::encode_entities($tag);    # is this right?
                        my $uri = Sesse::pr0n::Common::pretty_escape($tag);  # and this?
 
@@ -86,8 +86,8 @@ sub handler {
 
                while (my $ref = $q->fetchrow_hashref()) {
                        my $id = $ref->{'event'};
-                       my $date = HTML::Entities::encode_entities(Encode::decode_utf8($ref->{'date'}));
-                       my $name = HTML::Entities::encode_entities(Encode::decode_utf8($ref->{'name'}));
+                       my $date = HTML::Entities::encode_entities($ref->{'date'});
+                       my $name = HTML::Entities::encode_entities($ref->{'name'});
                        
                        $r->print("      <li><a href=\"$id/\">$name</a> ($date)</li>\n");
                }