On 7/14/20 10:38 AM, mail...@werner.by wrote:
> Hi,
> 
> I've mailing lists with some members using non ASCII characters in there
> names, like "Franz Müller <fmuel...@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
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 <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to