From: J M C. E. <jm...@ar...> - 2005-04-18 09:27:00
|
Vlada Macek wrote: > I'm trying to install Zope 2.7.5/Plone 2.0.5 on current Debian Sarge > (testing). I think I can use system-wide packaged Python 2.3. I have a few Zope+Plone systems running on top of Sarge's Python 2.3.5, apparently without problems. > /usr/lib/python2.3/site-packages/sitecustomize.py with this content as > adviced years ago? > > import sys > sys.setdefaultencoding('utf-8') On Sarge there is now a /etc/python2.3/site.py where you can set the default encoding by changing the appropriate assignment: encoding = "utf-8" # Default value set by _PyUnicode_Init() [used a few lines below in a sys.setdefaultencoding(encoding) ] I haven't checked recently if this is still *needed* for utf-8 usage in Plone. But it certainly caused no problems (I'm using utf-8 in all those Plone sites). Best regards J Esteves |