inline html viewing coding system
Hi, is there a way to configure mutt to consider the charset for displaying inline html? I use /usr/bin/w3m -dump -T text/html and by default this correctly displays utf-8 encoded html. Unfortunately, a lot of mailers still use iso-8859-1 and special characters aren't displayed correctly. The charset gets transmitted in the mail, but I don't know how to propagate that on the fly to w3m. Any ideas? -- Orm
Re: inline html viewing coding system
is there a way to configure mutt to consider the charset for displaying inline html? Not that I know of; I use a simple wrapper script for that (I use lynx, adjust options accordingly), using isutf8 (part of moreutils): isutf8 ${1} /dev/null \ lynx -assume_charset=utf-8 -display_charset=utf-8 -dump -force_html ${1} \ || lynx -display_charset=utf-8 -dump -force_html ${1} -- --|-- | Patrice Levesque http://ptaff.ca/ mutt.wa...@ptaff.ca | --|-- -- signature.asc Description: Digital signature
Re: inline html viewing coding system
Hi Patrice, thanks a lot, I adapted your script for w3m and that works in my western-euro-centric use-cases (assuming iso-8859-1 if it isn't utf-8). It would be much cleaner (and international) to determine the code-page from the attachment header, but I have no idea whether this even can be done without changing the sources of mutt. Anyway, your script at least solves the problem for me. -- Orm Am Montag, den 03. Juni 2013 um 12:08:35 Uhr (-0400) schrieb Patrice Levesque: is there a way to configure mutt to consider the charset for displaying inline html? Not that I know of; I use a simple wrapper script for that (I use lynx, adjust options accordingly), using isutf8 (part of moreutils): isutf8 ${1} /dev/null \ lynx -assume_charset=utf-8 -display_charset=utf-8 -dump -force_html ${1} \ || lynx -display_charset=utf-8 -dump -force_html ${1} -- --|-- | Patrice Levesque http://ptaff.ca/ mutt.wa...@ptaff.ca | --|-- --
Re: inline html viewing coding system
=- Orm Finnendahl wrote on Mon 3.Jun'13 at 18:39:50 +0200 -= It would be much cleaner (and international) to determine the code-page from the attachment header, but I have no idea whether this even can be done without changing the sources of mutt. wiki - faq - attachment -- © Rado S. -- You must provide YOUR effort for your goal! EVERY effort counts: at least to show your attitude. You're responsible for ALL you do: you get what you give.
Re: inline html viewing coding system
Am Montag, den 03. Juni 2013 um 20:12:49 Uhr (+0200) schrieb Rado Q: wiki - faq - attachment Great, thanks!! -- Orm PS (for anybody interested): This entry in /etc/mailcap does the job: text/html; w3m -T text/html -M -I %{charset} -o frame=0 -o meta_refresh=0 \ -dump -cols 72 '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html