From 321fcd4881bc196521466c6698f7c4b4a4bb5360 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 4 Apr 2020 08:03:15 +0000 Subject: [PATCH] view: note we assume UTF-8 on unknown encodings Clarify that we're assuming the text is UTF-8, since users may have no idea how it's mangled. --- lib/PublicInbox/View.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 70c10604..d897aeec 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -518,7 +518,9 @@ sub attach_link ($$$$;$) { my $rv = $ctx->{obuf}; $$rv .= qq($nl{mhref}$idx-$sfn">); if ($err) { - $$rv .= "[-- Warning: decoded text below may be mangled --]\n"; + $$rv .= <