Here `_escape()` is just a dumb cgi.escape wrapper that handles '&<>' and nothing else, and returns unicode when given unicode. Any value being written that can't be coerced to ascii will throw.
Using a better means of creating html here would be nice, but just settling on an encoding and making string values written conform to it would help.
This is a pretty simple problem.
oopstools/ oops/models. py line 153 CharField( max_length= MAX_EVALUE_ LEN)
exception_value = models.
Django deals in unicode.
oopstools/ scripts/ analyse_ error_reports. py lines 136-138 renderHTML( fp)
fp = open(options.html, 'wb')
summary.
fp.close()
Opens a file with no encoding specified.
oopstools/ oops/dbsummarie s.py lines 175-176 self.etype) , _escape( self.evalue) ))
fp.write('<div class="exc">%d <b>%s</b>: %s</div>\n'
% (self.count, _escape(
Here `_escape()` is just a dumb cgi.escape wrapper that handles '&<>' and nothing else, and returns unicode when given unicode. Any value being written that can't be coerced to ascii will throw.
Using a better means of creating html here would be nice, but just settling on an encoding and making string values written conform to it would help.