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/
>         [email protected]
>     --------================|================--------
>  --====|====--
> --


Reply via email to