diff options
author | Eric Wong <e@yhbt.net> | 2020-04-04 08:03:15 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-04 23:34:25 +0000 |
commit | 321fcd4881bc196521466c6698f7c4b4a4bb5360 (patch) | |
tree | 15ff1ff109d84c9dcea6c6b5848ad2ec027322d4 | |
parent | f63bdad8579f96901e08d2e7d9cd46ea528ffcce (diff) | |
download | public-inbox-321fcd4881bc196521466c6698f7c4b4a4bb5360.tar.gz |
Clarify that we're assuming the text is UTF-8, since users may have no idea how it's mangled.
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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<a\nhref="$ctx->{mhref}$idx-$sfn">); if ($err) { - $$rv .= "[-- Warning: decoded text below may be mangled --]\n"; + $$rv .= <<EOF; +[-- Warning: decoded text below may be mangled, UTF-8 assumed --] +EOF } $$rv .= "[-- Attachment #$idx: "; my $ts = "Type: $ct, Size: $size bytes"; |