Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+from-uce@imap.cc>
Subject: Re: Encoding for one particular article
Date: Sun, 25 Sep 2005 17:45:41 +0200	[thread overview]
Message-ID: <v9d5mxqhga.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87irwpqjsl.fsf@wilson.rwth-aachen.de>

On Sun, Sep 25 2005, Torsten Bronger wrote:

> How can I set the encoding of one article that I write or read?
>
> If I read a posting in an obviously wrong encoding, but I know the
> right one, how can I set it?

,----[ <f1> v gnus-summary-show-article-charset-alist RET ]
| gnus-summary-show-article-charset-alist is a variable defined in `gnus-sum'.
| Its value is 
| ((12 . windows-1252)
|  (0 . iso-8859-15)
|  (8 . utf-8))
| 
| Documentation:
| Alist of number and charset.
| The article will be shown with the charset corresponding to the
| numbered argument.
| For example: ((1 . cn-gb-2312) (2 . big5)).
`----

Then, use `8 g' to force utf-8 decoding:

,----[ <f1> f gnus-summary-show-article RET ]
| gnus-summary-show-article is an interactive compiled Lisp function
| in `gnus-sum'.
| (gnus-summary-show-article &optional arg)
| 
| Force redisplaying of the current article.
| If arg (the prefix) is a number, show the article with the charset
| defined in `gnus-summary-show-article-charset-alist', or the charset
| input.
| If arg (the prefix) is non-nil and not a number, show the raw article
| without any article massaging functions being run.  Normally, the key
| strokes are `C-u g'.
`----

> And if I have to deal with a newsreader at the other end of the line
> that is incapable of my UTF-8, how can I post an article in Latin-9?

,----[ <f1> v mm-coding-system-priorities RET ]
| mm-coding-system-priorities is a variable defined in `mm-util'.
| Its value is 
| (iso-8859-1 iso-8859-2 iso-8859-15 mule-utf-8)
| 
| Documentation:
| Preferred coding systems for encoding outgoing messages.
| 
| More than one suitable coding system may be found for some text.
| By default, the coding system with the highest priority is used
| to encode outgoing messages (see `sort-coding-systems').  If this
| variable is set, it overrides the default priority.
`----

You may also set `mm-coding-system-priorities' on a per-group basis or
for certain hierarchies:

,----[ From <news:v9fytn9o65.fsf_-_@marauder.physik.uni-ulm.de> ]
| (add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
| (setq gnus-parameters
|       '(("^de\\."
| 	 (mm-coding-system-priorities '(iso-8859-1 iso-8859-15 utf-8)))
| 	("^fr\\."
| 	 (mm-coding-system-priorities '(iso-8859-15 iso-8859-1 utf-8)))
| 	("^fj\\." ;; Japan?
| 	 (mm-coding-system-priorities '(shift_jis iso-2022-jp utf-8)))
| 	("^cz\\."
| 	 (mm-coding-system-priorities '(iso-8859-2 utf-8)))))
`----

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


  reply	other threads:[~2005-09-25 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-25 14:55 Torsten Bronger
2005-09-25 15:45 ` Reiner Steib [this message]
2005-09-26  2:09   ` Katsumi Yamaoka
2005-09-26 12:26     ` Reiner Steib

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=v9d5mxqhga.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+from-uce@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    /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).