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.

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to