<<< Date Index >>>     <<< Thread Index >>>

%{charset} produces 'quotes'



I finally found a way to fix almost *any* html problems with elinks,
You have to set the assumed charset to whatever a multi-part attachment
says in an Outlook or some such.  This is how elinks accepts it:

elinks -eval "set document.codepage.assume=\"koi8-r\"" ...

Note that it *needs* the double-quotes around the koi8-r, *NOT* 
the sinle ones that %{charset} there produces!  After some thought,
I did it this way:


1.  The mailcap entry:
text/html; elinks-charset-file %{charset} %s; needsterminal; copiousoutput; 

2.  The wrapper, elinks-charset-file:
elinks -eval "set document.codepage.assume=\"$1\"" -dump $2


Now, *why* does %{charset} feel obliged to add the single quotes,
expanding to 'koi8-r'?

-- 
Cheers,
Alexy Khrabrov :: www.suffix.com