From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/4831 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.user Subject: Re: Displaying Windows-1251 character set Date: Mon, 04 Apr 2005 11:33:59 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138670712 25057 80.91.229.2 (31 Jan 2006 01:25:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:25:12 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:34:22 2006 Original-Newsgroups: gnu.emacs.gnus X-Face: mtjf/D:es1T0wHO:&CJ'ZXe"l;3C--rw\z!{`eFwL){|]RpI+4{u25L=5C /0>KuGeTsk<~<&NE-AKV1560e!+RJeyWmSskkrJm?[vUV#66{T_m|Ae<||Ku#Mk5`y&O`n~z2;n8eP J5#2h@2eQgV@E70IY_0WlEx!"&giy{+\%h1LJox$zv@/l%ZmU4^tZA>xQpnkUBVC5.jpg#0'(+2?Rs )NAr:>3<=WxHE$ktbLysDIM5TbmHu*3 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/