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
_______________________________________________
Zope maillist - [email protected]
http://mail.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )