Re: Strange Characters In Emails
- To: mutt-users@xxxxxxxx
- Subject: Re: Strange Characters In Emails
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 1 Oct 2008 17:08:07 -0500
- 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=h68BQ2elK9OEbth0MEs6VKpyefc=; b=TjhH 5HnHV0M2k26DXsRdkhXU/Roqv/wa94rZbW45MlxtsIwTWuBw57gk0lmoHUCjqyiF NXkEOjcwbPQ/j47ca4na9cQ2JaQQRbTh1V+uNA/f2+30/b/DVMdnDqqGPklcLraM 5qh8WxrjrtyibGClDVRxhYA4F6usharIq3gGCbc=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=DEiPLhkZbNN/i9VWnIajlTwIkUa7iRRqgUnzu8IiUuDvgunqH4I3+rzsFImZ/8MJOIXXkV9MX0aqBRkzbog32Hv3YEaQek8f+K7YOE5be1G7ybVKpHgn/SYv74A4BUreOIGG1KRDPFysglN5i/ubso9muvnIBMtDqBc2ubME9f4=; 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: <20081001201832.GE30761@th-shell-1>
- 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: <20081001190315.GB8782@xxxxxxxxxxxxxxxxxxxxx> <20081001201832.GE30761@th-shell-1>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.18 (2008-09-25)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, October 1 at 09:18 PM, quoth Chris G:
>On Wed, Oct 01, 2008 at 08:03:15PM +0100, Chris Willard wrote:
>> Hello All,
>>
>> I am receving emails that have strange characters in them! Some
>> examples are as follows.
>>
>> \240 - instead of a space
>> \243 - instead of a pound sign
>>
>> Do I need to process the emails before they get to mutt?
>>
> It's most likely because the sender isn't setting the character set
> correctly in the headers. In particular \243 only means a pound
> sign if you have set the character set correctly, it can mean
> different things in different character sets.
Specifically, \243 means a pound sign in ISO-8859-1 (aka Latin-1),
ISO-8859-15, MACINTOSH and Windows-1252 character sets. \240 means a
space in ISO-8859-1 (aka Latin-1), ISO-8859-15, and Windows-1252
character sets.
If mutt isn't displaying them correctly, it's, as Chris G said,
probably because the sender didn't label the character set correctly.
The most common error is that things are sent in Windows-1252 and
simply not labeled at all, and pretending that they're Windows-1252 is
something you can tell mutt to do that's completely harmless.
Unfortunately, not all errors can be fixed, but these probably
(usually) can. Here's the best set of hooks for Western languages...
add them to your muttrc (credit to Alain Bench):
charset-hook ^unknown-8bit$ windows-1252
charset-hook ^x-user-defined$ windows-1252
charset-hook ^iso-8859-1$ windows-1252
charset-hook ^us-ascii$ windows-1252
charset-hook ^none$ windows-1252
charset-hook ^iso-8859-8-i$ iso-8859-8
charset-hook ^gb2312$ gb18030
~Kyle
- --
Men, as an organization, are getting more women than any other group
working anywhere in the world. Wherever women are, we have men looking
into it.
-- Jerry Seinfeld
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iEYEARECAAYFAkjj9McACgkQBkIOoMqOI16GvQCfcBR8VyL4TffRysuRH2LCbfWU
7JIAnRt9LAL779mK4UoOdzCly5wuQ/As
=+yHh
-----END PGP SIGNATURE-----