Discussion:
choosing iso-8859-1 over utf-8 for some newsgroups
Julien Cubizolles
2014-12-29 16:21:47 UTC
Permalink
The newsgroups from the hierarchy proxad.free don't accept utf-8 for
posting. Following the examples from the manual, I added

(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
(nconc
'(("^proxad\\." ;; Free n'accepte pas l'utf-8
(mm-coding-system-priorities '(iso-8859-1)))
;; (".*" (mm-coding-system-priorities '(utf-8)))
)
gnus-parameters))

to my .gnus.el.

But I still get the following message when trying to post:

--8<---------------cut here---------------start------------->8---
Sending news via news.free.fr using nntp...
441 441 437 utf-8 charset is not allowed in group proxad.free.services.pagesperso
Couldn't send message via news: 441 441 437 utf-8 charset is not allowed in group proxad.free.services.pagesperso
--8<---------------cut here---------------end--------------->8---

What am I missing ?

Julien.
Adam Sjøgren
2014-12-29 17:35:35 UTC
Permalink
Post by Julien Cubizolles
What am I missing ?
Could you be using characters that cannot be represented in iso-8859-1?
I think Gnus will then go to utf-8.

One thing to try is to temporarily configure Gnus to use iso-8859-1
globally:

(setq message-default-charset 'iso-8859-1) ;; Not sure if this is used
(setq mm-coding-system-priorities '(iso-8859-1 utf-8))

To see if it is the localized configuration or the general mechanism
that is failing...


Best regards,

Adam
--
"Please note: One of the quirks of our support system Adam Sjøgren
is that it always likes to have the "last word" ***@koldfront.dk
regarding a request."
Julien Cubizolles
2014-12-29 23:11:12 UTC
Permalink
Post by Adam Sjøgren
One thing to try is to temporarily configure Gnus to use iso-8859-1
(setq message-default-charset 'iso-8859-1) ;; Not sure if this is used
(setq mm-coding-system-priorities '(iso-8859-1 utf-8))
With this setup, I can post to the group, so it's the following that's
not working

--8<---------------cut here---------------start------------->8---
(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
(nconc
;; Some charsets are just examples!
'(("^proxad\\." ;; Free n'accepte pas l'utf-8
(mm-coding-system-priorities '(iso-8859-1 utf-8)))
(".*" (mm-coding-system-priorities '(utf-8))))
gnus-parameters))
--8<---------------cut here---------------end--------------->8---

I guess the ".*" was overriding the "^proxad\\." setting. I'm now using

--8<---------------cut here---------------start------------->8---
(setq mm-coding-system-priorities '(utf8))

(add-to-list 'gnus-newsgroup-variables 'mm-coding-system-priorities)
(setq gnus-parameters
(nconc
;; Some charsets are just examples!
'(("^proxad\\." ;; Free n'accepte pas l'utf-8
(mm-coding-system-priorities '(iso-8859-1 utf-8)))
;; (".*" (mm-coding-system-priorities '(utf-8)))
)
gnus-parameters))
--8<---------------cut here---------------end--------------->8---
Malcolm Purvis
2015-01-01 06:20:46 UTC
Permalink
Julien> (add-to-list 'gnus-newsgroup-variables
Julien> 'mm-coding-system-priorities) (setq gnus-parameters
Julien> (nconc
Julien> ;; Some charsets are just examples!
Julien> '(("^proxad\\." ;; Free n'accepte pas l'utf-8
Julien> (mm-coding-system-priorities '(iso-8859-1 utf-8)))
Julien> (".*" (mm-coding-system-priorities '(utf-8))))
Julien> gnus-parameters))


Julien> I guess the ".*" was overriding the "^proxad\\." setting.

The clauses in gnus-parameters are searched from first to last, so this
is the expected behaviour. The info page for gnus-parameters says:

All clauses that matches the group name will be used, but the last
setting “wins”. So if you have two clauses that both match the group
name, and both set, say ‘display’, the last setting will override the
first.

Malcolm
--
Malcolm Purvis <***@xemacs.org>
Loading...