Changes between Version 4 and Version 5 of MuttFaq/Charset


Ignore:
Timestamp:
Jul 28, 2013 2:26:07 PM (4 years ago)
Author:
eflags
Comment:

Fix <i>

Legend:

Unmodified
Added
Removed
Modified
  • MuttFaq/Charset

    v4 v5  
    117117auto_view text/html
    118118}}}
    119 When you open this mail in the mutt-pager, mutt spawns <i>w3m</i> (or any other text-browser defined in mailcap), <i>w3m</i> dumps text generated from the input html-file (`%s`) back to mutt and the mutt-pager displays it -- unfortunately wrong.
    120 
    121 The problem is, that <i>w3m</i> does not know anything about the character encoding of the input-file. <i>w3m</i> can only figure out a (possible) charset from your locales but in our example the sets don't match (`iso-8859-1 != UTF-8`).
    122 
    123 One can get around this, with the `%{charset}` variable in <i>mailcap</i>:
     119When you open this mail in the mutt-pager, mutt spawns ''w3m'' (or any other text-browser defined in mailcap), ''w3m'' dumps text generated from the input html-file (`%s`) back to mutt and the mutt-pager displays it -- unfortunately wrong.
     120
     121The problem is, that ''w3m'' does not know anything about the character encoding of the input-file. ''w3m'' can only figure out a (possible) charset from your locales but in our example the sets don't match (`iso-8859-1 != UTF-8`).
     122
     123One can get around this, with the `%{charset}` variable in `mailcap`:
    124124{{{
    125125w3m -I %{charset} -T text/html -dump; copiousoutput
    126126}}}
    127 (Don't be confused by the missing `%s` -- <i>w3m</i> can read data from stdin so `%s` is basically not needed. See [http://www.mutt.org/doc/devel/manual.html#id929354 Advanced mailcap Usage] for details.)
    128 
    129 the <i>w3m</i> documentation says:
     127(Don't be confused by the missing `%s` -- ''w3m'' can read data from stdin so `%s` is basically not needed. See [http://www.mutt.org/doc/devel/manual.html#id929354 Advanced mailcap Usage] for details.)
     128
     129the ''w3m'' documentation says:
    130130{{{
    131131$ w3m -h