[Zope3-dev] Re: Issue 124 in the collector.

Tres Seaver tseaver at zope.com
Mon Feb 9 07:22:58 EST 2004


Nicolas Évrard wrote:

> I've met the issue 124 from the collector again but I found a way around
> this issue.
> 
> The Python you're using when running zope3 should have
> sys.defaultencoding set to 'utf' and not 'ascii'.
> 
> On my debian system, it's impossible to use sys.setdefaultencoding() so
> I could not try the patch but it should work.

Can you edit /path/to/python2.3/site-packges/sitecustomize.py?  That 
file is the only possible place to change the encoding, I think.

   $ more /opt/zc/lib/python2.3/site-packages/sitecustomize.py
   import sys
   sys.setdefaultencoding('latin-1')

Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com




More information about the Zope3-dev mailing list