[z3-five] unicodes and strings in Zope 2.9's ZPT with Zope 3's i18n

Chris Withers chris at simplistix.co.uk
Mon Jul 24 14:13:28 CEST 2006


Maciej Wisniowski wrote:
> 
>> Well, I actually buckled and put a sitecustomize.py on the python path 
>> that chanded the default codec from ascii to utf-8.
>>
> Is this possible to see that code? I'm very interested in it :)

 From memory, create a sitecustomize.py on your PYTHONPATH:

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

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the z3-five mailing list