Allan Odgaard
Mon, 16 Jun 2008 19:54:23 -0700
## CLIIn order to get `list_members -f «list»` to properly output non-ASCII user names I had to put the following:
import sys
sys.setdefaultencoding('utf-8')
Into `/etc/python2.5/sitecustomize.py`. This is despite proper setup
of `LC_CTYPE` on the system. Seems to me Mailman should use the
encoding of the current locale, not this site-wide Python default
encoding (settable by root only).
## Web
For the web page forms to accept non-ASCII I had to put this:
add_language('en', 'English', 'utf-8')
Into `/etc/mailman/mm_cfg.py`. I think utf-8 should be the default
because even on an English list, you can use non-ASCII punctuation,
glyphs, and many European subscribers will have non-ASCII in their
names.
## Mailing ListThe mailing list letters are correct _except_ that the body now contains this:
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
And yes, each letter sent to the list is converted into base64.
I tried disabling the above utf-8 changes, but it did not seem to fix
it. But it might be that the list language (containing utf-8) was
copied at list creation time, so I will effectively have to recreate
the list (or write Python code) to change this?
Using Mailman 2.1.9 (Ubuntu installation). ------------------------------------------------------ Mailman-Users mailing list Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: http://mail.python.org/mailman/options/mailman-users/archive%40jab.org Security Policy: http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp