[Zope] UnicodeDecodeError inside ZMI

Dieter Maurer dieter at handshake.de
Tue Sep 5 14:51:14 EDT 2006


Remy Pinsonnault wrote at 2006-9-5 11:18 -0400:
>With Zope 2.8.7 and Python 2.3.5 (Plone 2.1.3 installer), when I search
>inside the ZMI for the spanish "ñ" character (inside a Plone site object), I
>get an UnicodeDecodeError:
>
> Site Error
>
>An error was encountered while publishing this resource.
>
>*UnicodeDecodeError*
>Sorry, a site error occurred.
>
>Traceback (innermost last):
> ...
>   - Module OFS.FindSupport, line 112, in ZopeFind
>
>UnicodeDecodeError: 'ascii' codec can't decode byte 0xf1 in position 0:
>ordinal not in range(128)

This means that unicode and (non ASCII) byte strings are mixed together.

Search the mailing list for "UnicodeDecodeError" (or "setdefaultencoding")
to find out how you can approach this problem.


-- 
Dieter


More information about the Zope mailing list