[Mailman-Developers] MM3 Test "" Hangs

Barry Warsaw barry at list.org
Thu Feb 27 22:04:14 CET 2014


On Feb 26, 2014, at 09:21 PM, Mark Sapiro wrote:

>You have to put/or enable something in sitecustomize.py (On Ubuntu a symlink
>to /etc/python2.7/sitecustomize.py) to get it to use the locale.

Have you changed your sitecustomize.py file?

You're right that sys.getdefaultencoding() gets initialized to 'ascii'
everywhere for Python 2.7.  The default site.py doesn't change that (even on
Ubuntu), and then it deletes sys.setdefaultencoding, so it's not possible to
change that after initialization.

How are you getting sys.getdefaultencoding() to return 'UTF-8'?

-Barry


More information about the Mailman-Developers mailing list