[Mailman-Users] Problem listing full member names with diacritics
Mark Sapiro
mark at msapiro.net
Thu Jun 13 07:42:21 CEST 2013
On 06/12/2013 09:36 PM, Brett Delmage wrote:
>
> Characters with diacritics in subscriber names are coming out as "?".
bin/list_members uses the encoding returned by Python's
sys.getdefaultencoding() which is 'ascii' so all non-ascii characters
get converted to '?'
You have a couple of choices:
1) You can edit bin/list_members and replace
ENC = sys.getdefaultencoding()
by
ENC = 'utf-8'
2) Edit /usr/lib/pythonv.v/site.py where v.v is your Python version.
Find the definition of setencoding() and change the4th line from
encoding = "ascii" # Default value set by _PyUnicode_Init()
to
encoding = "utf-8"
--
Mark Sapiro <mark at msapiro.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list