Remove all Encode::decode_utf8 calls, as seemingly scalars from PostgreSQL comes...
[pr0n] / perl / Sesse / pr0n / Index.pm
index 22d233b1d26276cfe0e3ae94eb408a13af79b21b..1a631ebaea16f5e6746f2d77a1c22402ad1b665a 100644 (file)
@@ -164,8 +164,8 @@ sub handler {
                        undef, $r->get_server_name, $event)
                        or error($r, "Could not find event $event", 404, "File not found");
 
-               $date = HTML::Entities::encode_entities(Encode::decode_utf8($ref->{'date'}));
-               $name = HTML::Entities::encode_entities(Encode::decode_utf8($ref->{'name'}));
+               $date = HTML::Entities::encode_entities($ref->{'date'});
+               $name = HTML::Entities::encode_entities($ref->{'name'});
                $r->set_last_modified($ref->{'last_update'});
        }