Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Encoding for one particular article
@ 2005-09-25 14:55 Torsten Bronger
  2005-09-25 15:45 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Torsten Bronger @ 2005-09-25 14:55 UTC (permalink / raw)


Hallöchen!

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?

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?
Thanks!

Tschö,
Torsten.

-- 
Torsten Bronger, aquisgrana, europa vetus            ICQ 264-296-646


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Encoding for one particular article
  2005-09-25 14:55 Encoding for one particular article Torsten Bronger
@ 2005-09-25 15:45 ` Reiner Steib
  2005-09-26  2:09   ` Katsumi Yamaoka
  0 siblings, 1 reply; 4+ messages in thread
From: Reiner Steib @ 2005-09-25 15:45 UTC (permalink / raw)


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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Encoding for one particular article
  2005-09-25 15:45 ` Reiner Steib
@ 2005-09-26  2:09   ` Katsumi Yamaoka
  2005-09-26 12:26     ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2005-09-26  2:09 UTC (permalink / raw)


>>>>> In <v9d5mxqhga.fsf@marauder.physik.uni-ulm.de> Reiner Steib wrote:

> 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)))))
> `----

For the fj hierarchy, it will be better to use the default value
of the case where Gnus runs in the Japanese language environment.
That is:

	("^fj\\." ;; Japan
	 (mm-coding-system-priorities
	  '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)))

You all might not write Japanese articles, though. ;-)


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Encoding for one particular article
  2005-09-26  2:09   ` Katsumi Yamaoka
@ 2005-09-26 12:26     ` Reiner Steib
  0 siblings, 0 replies; 4+ messages in thread
From: Reiner Steib @ 2005-09-26 12:26 UTC (permalink / raw)


On Mon, Sep 26 2005, Katsumi Yamaoka wrote:

>>>>>> In <v9d5mxqhga.fsf@marauder.physik.uni-ulm.de> Reiner Steib wrote:
>
>> You may also set `mm-coding-system-priorities' on a per-group basis or
>> for certain hierarchies:
[...]
> For the fj hierarchy, it will be better to use the default value
> of the case where Gnus runs in the Japanese language environment.
> That is:
>
> 	("^fj\\." ;; Japan
> 	 (mm-coding-system-priorities
> 	  '(iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)))
>
> You all might not write Japanese articles, though. ;-)

Exactly.  :-)  Thanks for the correction.

In the article quoted above, I used the suggestions from the previous
poster[1].  It was only to demonstrate that Gnus allows the
specification of the outgoing charset on a hierarchical basis.

Bye, Reiner.

[1] One of those "Is there any newsreader that supports ...?"
    questions, where (of course[2]) the answer always is "Gnus".

[2]
,----[ Karl Kleinpaste in <news:vxkhepi9xxd.fsf@cinnamon.vanillaknot.com> ]
| It's been said a number of times (and I don't mind perpetuating the
| meme) that Gnus is a proper superset of every feature any other
| newsreader ever had.
`----
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-26 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-25 14:55 Encoding for one particular article Torsten Bronger
2005-09-25 15:45 ` Reiner Steib
2005-09-26  2:09   ` Katsumi Yamaoka
2005-09-26 12:26     ` Reiner Steib

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).