Re: html mails and umlaute
- To: mutt-users@xxxxxxxx
- Subject: Re: html mails and umlaute
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 21 Jan 2009 12:01:19 -0600
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date :from:to:subject:message-id:references:mime-version:content-type :in-reply-to; s=default; bh=0+IAj5ZJzvAWV++bSZo4wPvh8Nc=; b=af8X iHlNQL4k5oU2x8iUt7dkhnjrsroQrXb71TVTJNmeVZNGCkPlMJe7NlLjjNIBP6W4 K7/If8j97CiiX+kF2oKECAsRUBnHoIHELwmGoUPYFWgHN2EZcZwetV2ej6lAoja8 fyb+I9UC0FSIgp+s0NvSs+jTe4mIwZQtU0SPNj0=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=SFA91Ad7qqkfgTsdktpxBL4jbCDE9LZ+Kcz2UAdAxV0zZQCCMze6AJdQycCtVOGbYbyCrLxVGcxoEp8p4FXiL6jzUzHTj+1H9DN9mk18Lzn0ID4XiuSL4+yh1nZ7fe3SxfciYp721i64KUSIVoOYf2gl9tZYJ6AAc0bpA2oOLhA=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:OpenPGP:User-Agent;
- In-reply-to: <20090121174125.GA3528@SamZwo>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- Openpgp: id=CA8E235E; url=http://www.memoryhole.net/~kyle/kyle-pgp.asc; preference=signencrypt
- References: <20090121174125.GA3528@SamZwo>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.19 (2009-01-11)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, January 21 at 06:41 PM, quoth Nathan Huesken:
> To view html mails, I have this line in my .mailcap:
>
> text/html; elinks -dump -dump-charset ISO-8859-15 -default-mime-type
> text/html %s; needsterminal; copiousoutput;
>
> But it does not display Umlaute properly. Since I am german speeking, this is
> kind of anoying. I tried using UTF-8 for encoding, but it did not help.
> What should I do?
One of the basic problems with that is that it's rather difficult to
inform elinks about what the character set of the INPUT is. And since
it doesn't know about the INPUT character set, it cannot correctly
ensure that the OUTPUT is correct (the -dump-charset is telling it
what character set you want the OUTPUT to be in).
I would suggest using w3m instead of elinks because it has much better
character set handling. If you install w3m, here's the mailcap line
you want:
text/html; w3m -I %{charset} -dump -T text/html %s; copiousoutput
On the other hand, w3m sometimes has trouble forcing bad HTML to
render in 80 columns when in dump-mode. Personally, this isn't a big
enough problem to make me stop using it, but your experience may be
different.
~Kyle
- --
The liberty of a democracy is not safe if the people tolerate the
growth of a private power to a point where it becomes stronger than
the democratic state itself.
-- Franklin D. Roosevelt
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkl3Yu4ACgkQBkIOoMqOI17wGACfVryPp5gxnyh1kwfol28lzjTD
vwsAoNiGOjek2+SB37QmKgChp6ZXs5K4
=Yn6+
-----END PGP SIGNATURE-----