<div>--- In <A href="mailto:zope@yahoogroups.com">zope@yahoogroups.com</A>, "Daryl Daly" <daryld@...> wrote:<BR>><BR>> <BR>> I have setup a test case which seems to show the problem. This test<BR>> removes the database component.<BR>> <BR>> New install of zope 2.10.2:<BR>> Zope Version (Zope 2.10.2-final, python 2.4.4, linux2)<BR>> Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red<BR>> Hat 4.1.1-30)]<BR>> System Platform linux2<BR>> <BR>> I created a page template which contains:<BR>> <html tal:define="dummy python:request.RESPONSE.setHeader('Content-Type',<BR>> 'text/html;; charset=utf-8');" ><BR>> <head><BR>> <title tal:content="template/title">The title</title><BR>> <meta http-equiv="content-type" content="text/html;charset=utf-8"><BR>> </head><BR>> <body
tal:define="test_str python:u'This is a test \u00e9 \u00ae \u2022<BR>> \u2024 \u2219 \u03b2'.encode('utf-8')"><BR>> <span tal:content="test_str"></span><BR>> <form><BR>> <input name="t1" value=""<BR>> tal:attributes="value test_str"><BR>> </form><BR>> </body><BR>> </html><BR>> <BR>> When this page is viewed in Firefox (v 1.5.0.9), it shows the characters<BR>> correctly. When viewed in IE6, the non-ascii characters show as garbage.<BR>> <BR>> If I add this to the zope.conf:<BR>> <cgi-environment><BR>> HTTP_ACCEPT_CHARSET utf-8<BR>> </cgi-environment><BR>> <BR>> the non-ascii characters show correctly in IE6 (except one of them shows<BR>> as a box - there
is no 'garbage')<BR>> <BR>> Is this zope.conf setup required for IE6 or am I doing something wrong?<BR>> <BR>> Thanks,<BR>> Daryl.</div> <div> </div> <div>How about changing the following line 996 in /lib/python/zope/publisher/http.py ( as described in <A href="http://www.zope.org/Collectors/Zope/2280">http://www.zope.org/Collectors/Zope/2280</A> )</div> <div> </div> <div> header_present = 'HTTP_ACCEPT_CHARSET' in self.request </div> <div>to </div> <div> </div> <div> header_present = 'HTTP_ACCEPT_CHARSET' in self.request.keys() </div> <div><BR>I think this is a bug. After doing that change, IE6 and IE7 behaved <SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">consistently</SPAN>.</div> <div> </div> <div>Regards Jost</div><p> 
<hr size=1>Need Mail bonding?<br>Go to the <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">Yahoo! Mail Q&A</a> for <a href="http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091">great tips from Yahoo! Answers</a> users.