[ZCM] [ZC] 847/ 2 Comment "(ZPT) UnicodeErrors are painful to debug"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Thu May 13 09:59:16 EDT 2004
Issue #847 Update (Comment) "(ZPT) UnicodeErrors are painful to debug"
Status Pending, Zope/bug medium
To followup, visit:
http://zope.org/Collectors/Zope/847
==============================================================
= Comment - Entry #2 by dchandek on May 13, 2004 9:59 am
This is still a problem in 2.7.
I don't know what the best answer is, but conversion of non-standard ASCII values should (at least optionally) fail gracefully. Perhaps add a setting to zope.conf by which to control the unicode decoding error value (I assume that Zope uses the Python builtin unicode() ?).
________________________________________
= Request - Entry #1 by ctheune on Mar 11, 2003 5:13 pm
When something slips within a ZPT that is not in XML
Mode, and a native character (like german umlauts)
not in ASCII, ZPT will hit you many times very hard.
The biggest problem is that the UnicodeError happens
in StringIO and you get no hint what failed. My typical
solution looks like this: hack StringIO to make
some printdebugging on the failing join (where some
things that have not been unicode before get
casted implicitly).
Zope should provide an easier way to find the
buggy string that caused this error.
==============================================================
More information about the Zope-Collector-Monitor
mailing list