Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-09-01 Thread Takayuki Shimizukawa
Hi Chris, 2010/9/1 Chris Withers : > Marius Gedminas wrote: >>> Has anyone seen this or anything similar before? >> >> Yes.  Basically, every Zope site I've upgraded to 2.12 has suffered from >> this.  Annoyingly this only happens with MSIE, so developers/admins tend >> not to notice. > > ...well,

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-09-01 Thread Chris Withers
Marius Gedminas wrote: >> Has anyone seen this or anything similar before? > > Yes. Basically, every Zope site I've upgraded to 2.12 has suffered from > this. Annoyingly this only happens with MSIE, so developers/admins tend > not to notice. ...well, and Safari, but no-one uses that, right? ;-)

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-09-01 Thread Marius Gedminas
On Tue, Aug 31, 2010 at 10:40:46AM +0100, Chris Withers wrote: > After a recent upgraded to Zope 2.12, I'm now seeing errors like the > following when using IE (version 8) or Safari (version 4.0.3) to view > page templates. Chrome and Firefox work fine. > > Traceback (innermost last): >Modul

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Robert Casties
Hi Chris, On 08/31/2010 11:40 AM, Chris Withers wrote: > After a recent upgraded to Zope 2.12, I'm now seeing errors like the > following when using IE (version 8) or Safari (version 4.0.3) to view > page templates. Chrome and Firefox work fine. This may be related to IE and Safari not sending

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Vladislav Vorobiev wrote: > Maybe not the best solution but I use this hack: > > zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py Indeed, certainly not a good solution. This implies that things should be unicode by the time they get here. Now, the decoding shouldn't be dependent on anything t

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Vladislav Vorobiev
Maybe not the best solution but I use this hack: zope.tal-3.5.2-py2.7.egg/zope/tal/talinterpreter.py line 751 change: text = unicode(structure) to try: text = unicode(structure) except: text=unicode(structure.decode('utf-8')

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Charlie Clark
Am 31.08.2010, 12:51 Uhr, schrieb Chris Withers : > Any idea what I should be looking for and in what changelog? This my horribly patched version of charset.py which we just use via an override. I know it's wrong but it was the easiest thing to do at a time. class HTTPCharsets(object): ""

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Charlie Clark wrote: > Am 31.08.2010, 12:05 Uhr, schrieb Chris Withers : > >> What does Zope2's publisher do with requested encodings and the like now? >> Why would this be causing problems? > > I can't remember exactly where but preferred_charset is looked for. It > isn't set by either IE or S

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Charlie Clark
Am 31.08.2010, 12:05 Uhr, schrieb Chris Withers : > What does Zope2's publisher do with requested encodings and the like now? > Why would this be causing problems? I can't remember exactly where but preferred_charset is looked for. It isn't set by either IE or Safari and, although it should def

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Chris Withers
Marco Bizzarri wrote: > > No solution, actually, but I would suggest to sniff the traffic between > you and the server; I suspect different headers cause problems, here. Of that I have no doubt. What does Zope2's publisher do with requested encodings and the like now? Why would this be causing

Re: [Zope-dev] UnicodeDecodeError from PageTemplate rendering after upgrading to Zope 2.12.7

2010-08-31 Thread Marco Bizzarri
On Tue, Aug 31, 2010 at 11:40 AM, Chris Withers wrote: > Hi All, > > After a recent upgraded to Zope 2.12, I'm now seeing errors like the > following when using IE (version 8) or Safari (version 4.0.3) to view > page templates. Chrome and Firefox work fine. > > Traceback (innermost last): > Modu