Comment 1 for bug 581518

Revision history for this message
Mark Sapiro (msapiro) wrote :

This is not a bug in list_members. list_members encodes the full names for output in the default encoding of the Python installation. If you want this to be, e.g., iso-8859-1 or utf-8 as opposed to ascii which is the normal Python default, you have to add, e.g., sys.setdefaultencoding('utf-8') to a sitecustomize.py module. See <http://docs.python.org/library/sys.html#sys.setdefaultencoding>.

For example, if you want utf-8 encoding as the Python default, you could create /usr/lib/pythonv.v/site-packages/sitecustomize.py containing the two lines:

import sys
sys.setdefaultencoding('utf-8')