> - we check some command line switch (-E foo for instance) and if it is > set then we call sys.setdefaultencoding(foo), > - we import site.py to get original behavior. You can't call sys.setdefaultencoding() except in a sitecustomize.py module. --Guido van Rossum (home page: http://www.python.org/~guido/)