On 7/14/20 10:38 AM, [email protected] wrote:
> Hi,
>
> I've mailing lists with some members using non ASCII characters in there
> names, like "Franz Müller <[email protected]>".
>
> 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 <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
------------------------------------------------------
Mailman-Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]/
https://mail.python.org/archives/list/[email protected]/