info-gnus-english
[Top][All Lists]
Advanced

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

Re: Displaying Windows-1251 character set


From: Reiner Steib
Subject: Re: Displaying Windows-1251 character set
Date: Mon, 04 Apr 2005 11:33:59 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

On Mon, Apr 04 2005, David Sumbler wrote:

> Occasionally I get e-mails containing these headers:
>
> Content-Type: text/plain; charset=Windows-1251
> Content-Transfer-Encoding: 8bit
[...]
> But how do I go about displaying these sensibly?  I'm running Fedora
> Core 2 Linux, on a console set to UTF-8.

You need to setup Windows-1251 aka codepage 1251 with `codepage-setup'
and add an entry to `mm-charset-synonym-alist'.

I'd suggest the following code:

(eval-after-load "mm-util"
  '(progn
     (codepage-setup 1251)
     (when (and (not (mm-coding-system-p 'windows-1251))
                (mm-coding-system-p 'cp1251))
       (add-to-list 'mm-charset-synonym-alist
                    '(windows-1251 . cp1251)))))

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

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