24 Aug
2007
24 Aug
'07
5:38 p.m.
Patrick Ulmer wrote at 2007-8-24 10:26 +0200:
I think I solved the problem.
<dtml-var "MessageCatalog('Hallo Welt!').encode('utf-8')">
works. I read some further and found out that I should use something like
import sys sys.setdefaultencoding('utf-8')
I set it global in sitecustomize.py under /usr/lib/python2.4/site-packages and then
<dtml-var "MessageCatalog('Hallo Welt!')">
works. Now I only must find the right place for setdefaultencoding() so it only affect my zope-instance.
"$INSTANCE_HOME/lib/python" would be a good place for the "site-customize.py". -- Dieter