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 23:47:29 -0400 [thread overview]
Message-ID: <2nzozxirse.fsf@tiger.jia.vnet> (raw)
In-Reply-To: Shenghuo ZHU's message of "11 Aug 1999 22:14:31 -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.)
>>>>> "ZSH" == Shenghuo ZHU <zsh@cs.rochester.edu> writes:
ZSH> If you want treat all messages with iso-8859-1 as big5 in a
ZSH> group, you can set charset to big5 and add iso-8859-1 to ignored
ZSH> charsets in group parameters customizing buffer (pressing 'G C'
ZSH> on the group).
ZSH> For a single message, you can use the following code by pressing '2 g'
ZSH> on the article in summary buffer.
Sorry, I made a mistake. The following code is not for this problem.
ZSH> (defvar zsh/gnus-summary-show-article-alist
ZSH> '((1 . cn-gb-2312)
ZSH> (2 . big5)))
ZSH> (require 'gnus-sum)
ZSH> (defadvice gnus-summary-show-article
ZSH> (around zsh/gnus-summary-show-article first
ZSH> (&optional arg))
ZSH> (if (numberp arg)
ZSH> (let ((gnus-newsgroup-charset
ZSH> (or (cdr (assoc arg zsh/gnus-summary-show-article-alist))
ZSH> (read-coding-system "Charset: "))))
ZSH> (ad-set-args 0 (list nil))
ZSH> ad-do-it)
ZSH> ad-do-it))
ZSH> (ad-activate 'gnus-summary-show-article)
--
Shenghuo
prev parent reply other threads:[~1999-08-12 3:47 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
1999-08-12 3:47 ` Shenghuo ZHU [this message]
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=2nzozxirse.fsf@tiger.jia.vnet \
--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).