]> Sergey Matveev's repositories - public-inbox.git/commit
view: try assuming UTF-8 for bogus charsets
authorEric Wong <e@80x24.org>
Thu, 18 Aug 2016 01:10:35 +0000 (01:10 +0000)
committerEric Wong <e@80x24.org>
Thu, 18 Aug 2016 01:32:46 +0000 (01:32 +0000)
commit1b28cc7f00a866cb2b60a6569002db1f605019d5
treea38dac8d8ab2c067546a8b33b7d0789f48f2b3cf
parent98bd8519675595f6697185a9bd5ee06669bd50be
view: try assuming UTF-8 for bogus charsets

For some reason, Alpine will set X-UNKNOWN for valid UTF-8.
Since we favor UTF-8 HTML anyways, try forcing Email::MIME to
handle text/plain as UTF-8 which might show up better.

At least this change renders

<alpine.DEB.2.20.1608131214070.4924@virtualbox>

properly by showing "•" (&#8226;) instead of
"â ¢" (&#226;&#128;&#162;)

Reported-by: Thomas Ferris Nicolaisen <tfnico@gmail.com>
lib/PublicInbox/View.pm