You are here: Home Plone products Unicode Error Detector

Unicode Error Detector (0.1)

1
by Ihor Berehulyak last modified 2009-01-13
0.0
0.0
0.0
0.0
Released on 2005-06-28 by Jarn, Martin Opstad Reistadbakk, Helge Tesdal for Plone 2.0 under Unavailable License available for All platforms.
Software development stage: alpha
Unicode Error Detector is a simple product that you can install to pinpoint errors in your application leading to UnicodeDecodeErrors.
UnicodeDecodeErrors typically occur when you try to add a Unicode string to a non-ascii string. This product patches StringIO used by page templates to check if the appended string is a Unicode string, and if it is, it replaces the string with an error marker.

As there is some overhead associated with inspecting the strings instead of just appending to the output, this product is meant for debugging purposes only.

Usage

Put the product in your Products directory and restart Zope. Load the template causing the UnicodeDecodeError, and this tool will indicate the location by printing THIS IS WHERE THE ERROR IS in the rendered template.

You can then inspect the template and/or code more closely to figure out where the decode error happens.

Document Actions
Powered by Plone