[Zope] Re: problem with input elements and unicode/utf-8

Jostein Leira jostein.leira at snapper.no
Sun Feb 18 16:29:43 EST 2007


I have experienced on my installation that Zope decides that the
character set should be iso-8859-1 for IE7 even no HTTP_ACCEPT_CHARSET
is sent from IE7 and preferred charset is utf-8. Firefox submits
HTTP_ACCEPT_CHARSET and Zope handles that OK.
 
http://www.zope.org/Collectors/Zope/2280
<http://www.zope.org/Collectors/Zope/2280> 
 
I'm wondering what the correct way to set up Zope to use utf-8?
 
Have set sys.setdefaultencoding('utf-8') in
/usr/local/lib/python2.4/site.py.
Have set management_page_charset='utf-8' as property of / in ZMI.
Have set default-zpublisher-encoding utf-8 in etc/zope.conf.
 
After the comments in the Collector above I'm wondering what to do if I
should not set the sys.setdefaultencoding()? Not changing the default
encoding I always get a decode error when trying to save a page template
with non-ascii characters.
 
Regards Jost

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20070218/54168935/attachment.htm


More information about the Zope mailing list