nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] mojibake in UTF-8 encoded quoted-printable messages


From: Joel Uckelman
Subject: Re: [Nmh-workers] mojibake in UTF-8 encoded quoted-printable messages
Date: Thu, 24 Oct 2013 10:42:58 -0700

Thus spake Ken Hornstein:
> >I didn't know about %a. It turns out that's sufficient, if kludgy:
> >
> >mhshow-show-text/html: %p/usr/bin/lynx -assume_charset=`echo %a | sed 
> >'s/.*charset="\([^"]\+\)".*/\1/'` -force_html -dump '%f' | less
> 
> The only problem with that is if charset doesn't exist as a parameter,
> you don't get the default encoding.  So it's not perfect, but it's
> a lot better than nothing.

Challenge accepted:

mhshow-show-text/html: %p/usr/bin/lynx `echo %a | sed -n 
's/.*charset="\([^"]\+\)".*/-assume_charset=\1/p'` -force_html -dump '%f' | less

:)

-- 
J.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]