[Mailman-Users] problem with locale settings and command line interface

2020-07-15 Thread mailman

Hi,

I've mailing lists with some members using non ASCII characters in there 
names, like "Franz Müller ".


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


--
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/


[Mailman-Users] Re: problem with locale settings and command line interface

2020-07-15 Thread Mark Sapiro
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 ".
> 
> 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


-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter 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/