problem with locale settings and command line interface
Hi,
I've mailing lists with some members using non ASCII characters in there names, like "Franz Müller fmueller@example.com".
Mailman 2.1.29 is installed. When I run "list_members -f mylist" I get question marks in the output. My locale settings:
LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
What can I do to get the names in UTF-8?
Thanks
Torsten
Hi,
I've mailing lists with some members using non ASCII characters in there names, like "Franz Müller fmueller@example.com".
Mailman 2.1.29 is installed. When I run "list_members -f mylist" I get question marks in the output. Assuming Mailman has actually stored the names properly, i.e. they show correctly in the web admin membership list and/or when you see them in
On 7/14/20 10:38 AM, mailman@werner.by wrote: the output of Mailman's bin/dumpdb of the list's config.pck, the issue is that list_members encodes them in the character set returned by python's sys.getdefaultencoding() which is probably ascii. To fix this, you would add a call to
sys.setdefaultencoding('utf-8')
to your Python library site module. See https://docs.python.org/2.7/library/sys.html#sys.setdefaultencoding
-- Mark Sapiro mark@msapiro.net The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
mailman@werner.by
-
Mark Sapiro