Re: non-MULE Gnus и windows-1251 codepage
[email protected] (Vasily Korytov)
| Newsgroups | gmane.emacs.xemacs.user.russian |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 05 Dec 2003 01:51:21 +1000, Valery Shishkov wrote:
> Поставил я себе самособранный XEmacs-21.4.13 (non-MULE) вместо
> Emacs-21.3. Все хорошо, но вот теперь Gnus письма в кодировке
> windows-1251 кажет мешаниной. :( Это как-то без MULE можно победить?
Я в свое время решил эту проблему для себя так:
--8<------------------------schnipp------------------------->8---
;; define a couple of recoding shortcuts for Gnus and non-MULE emacsen
;;
(defun gnus-summary-vk-recode-from-iso ()
"Pipes the article through `iconv -f iso8859-5 -t koi8-r` and re-highlightes i
t."
(interactive)
(gnus-summary-pipe-message "iconv -f iso8859-5 -t koi8-r")
(gnus-article-highlight)
(gnus-article-emphasize))
(defun gnus-summary-vk-recode-from-win ()
"Pipes the article through `iconv -f cp1251 -t koi8-r` and re-highlightes it."
(interactive)
(gnus-summary-pipe-message "iconv -f cp1251 -t koi8-r")
(gnus-article-highlight)
(gnus-article-emphasize))
--8<------------------------schnapp------------------------->8---
--
I accept RFC3156 and RFC2440-compatible encrypted mail.
PGP key fingerprint: 3273 7F6F 7B87 5DD5 9848 05FB E442 86BC 2E6B 6831