From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: How to view article in a specified charset(difer from the Content-Type)?
Date: 11 Aug 1999 22:14:31 -0400 [thread overview]
Message-ID: <5b907h68zc.fsf@brandy.cs.rochester.edu> (raw)
In-Reply-To: Shenghuo ZHU's message of "11 Aug 1999 22:09:47 -0400"
>>>>> "CMC" == Ching-Mo Chang <chingmo@mail.onweb.com.tw> writes:
CMC> I often received mail in chinese-big5 text, but with a
CMC> Content-Type setting as below:
CMC> "Content-Type: text/plain; charset=iso-8859-1"
CMC> Gnus surely will treat the content as iso-8859-1 text. Is there a
CMC> way for me to ask guus to view the message as big5 text?
CMC> (i.e. treat the message as having a "Content-Type: text/plain;
CMC> charset=big5" setting.)
If you want treat all messages with iso-8859-1 as big5 in a group, you
can set charset to big5 and add iso-8859-1 to ignored charsets in
group parameters customizing buffer (pressing 'G C' on the group).
For a single message, you can use the following code by pressing '2 g'
on the article in summary buffer.
(defvar zsh/gnus-summary-show-article-alist
'((1 . cn-gb-2312)
(2 . big5)))
(require 'gnus-sum)
(defadvice gnus-summary-show-article
(around zsh/gnus-summary-show-article first
(&optional arg))
(if (numberp arg)
(let ((gnus-newsgroup-charset
(or (cdr (assoc arg zsh/gnus-summary-show-article-alist))
(read-coding-system "Charset: "))))
(ad-set-args 0 (list nil))
ad-do-it)
ad-do-it))
(ad-activate 'gnus-summary-show-article)
--
Shenghuo
next prev parent reply other threads:[~1999-08-12 2:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-11 17:12 Ching-Mo Chang
[not found] ` <5bd7wt6978.fsf@brandy.cs.rochester.edu>
1999-08-12 2:14 ` Shenghuo ZHU [this message]
1999-08-12 3:47 ` Shenghuo ZHU
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b907h68zc.fsf@brandy.cs.rochester.edu \
--to=zsh@cs.rochester.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).