about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoTree.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoTree.pm')
-rw-r--r--lib/PublicInbox/RepoTree.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoTree.pm b/lib/PublicInbox/RepoTree.pm
index 9c7b86b3..5c73531a 100644
--- a/lib/PublicInbox/RepoTree.pm
+++ b/lib/PublicInbox/RepoTree.pm
@@ -8,7 +8,7 @@ use PublicInbox::ViewDiff qw(uri_escape_path);
 use PublicInbox::WwwStatic qw(r);
 use PublicInbox::Qspawn;
 use PublicInbox::WwwStream qw(html_oneshot);
-use PublicInbox::Hval qw(ascii_html);
+use PublicInbox::Hval qw(ascii_html utf8_maybe);
 
 sub rd_404_log {
         my ($bref, $ctx) = @_;
@@ -26,7 +26,7 @@ sub rd_404_log {
                 $code = 404;
         } else {
                 my ($H, $h, $s_as) = split(/ /, $$bref, 3);
-                utf8::decode($s_as);
+                utf8_maybe($s_as);
                 my $x = uri_escape_path($ctx->{-path});
                 $s_as = ascii_html($s_as);
                 print $zfh <<EOM;