[Zope3-dev] Re: Couldn't find view 's'

Bjorn Tillenius bjoti777 at student.liu.se
Tue Oct 12 15:07:05 EDT 2004


On Tue, Oct 12, 2004 at 04:32:08PM +0400, Florian Lindner wrote:
> That changed the error message to:
> 
>  File "C:\Python23\lib\StringIO.py", line 203, in getvalue
>    self.buf += ''.join(self.buflist)
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xfc in position 22: 
> ordinal
> not in range(128)
> 127.0.0.1 - zope.anybody [12/Oct/2004:16:30:21 +0400] "GET 
> /++skin++centershock/
> gg/@@main.html HTTP/1.1" 200 292 "" "Mozilla/5.0 (Windows; U; Windows NT 
> 5.1; de
> -DE; rv:1.7) Gecko/20040803 Firefox/0.9.3"
> 
> Is there any way to tell which file zope means? What charachter is 0xfc?

You could use the postmortem debugger. Don't know the debugger to well,
but there should be some back trace. But you could also print out
self.buflist. What's causing the error is that it contains both unicode
strings, and normal strings with non-ascii characters. I would guess
that something in your ZPT returns a non-unicode string.
Maybe this part?

<title metal:define-slot="title" tal:content="string:Z3:
${context/zope:title_or_name}">centershock.net</title>

Character 0xfc is 'ü'.

Regards,

Bjorn


More information about the Zope3-dev mailing list