Pylons/pyramid_debugtoolbar — Issue #49: templates/headers.mako fails when environ['PATH_INFO'] contains unicode
Author: invisibleroads
Created: 2011-12-16 15:45:15+00:00
State: open

The problem happens if I navigate to a URL that contains unicode.

I traced the problem to pyramid_debugtoolbar's use of markupsafe.escape(), which raises UnicodeDecodeError for any bit of unicode. However, cgi.escape() method is able to handle unicode without raising an exception.

I'm not sure how to work around this issue, so I will temporarily disable pyramid_debugtoolbar.

Pyramid itself has no problems with unicode URLs.