You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems the rendering of the toolbar crashes when default_charset="iso-8859-1" in settings.py.
Traceback (most recent call last):
File "c:\Python25\Lib\site-packages\django\core\servers\basehttp.py", line 278, in run
self.result = application(self.environ, self.start_response)
File "c:\Python25\Lib\site-packages\django\core\servers\basehttp.py", line 635, in __call__
return self.application(environ, start_response)
File "c:\Python25\lib\site-packages\django\core\handlers\wsgi.py", line 245, in __call__
response = middleware_method(request, response)
File "c:\Python25\lib\site-packages\django_debug_toolbar-0.7.0-py2.5.egg\debug_toolbar\middleware.py", line 93, in process_response
response.content = replace_insensitive(smart_unicode(response.content), u'</body>', smart_unicode(self.debug_toolbar.render_toolbar() + u'</body>'))
File "c:\Python25\lib\site-packages\django\utils\encoding.py", line 42, in smart_unicode
return force_unicode(s, encoding, strings_only, errors)
File "c:\Python25\lib\site-packages\django\utils\encoding.py", line 77, in force_unicode
raise DjangoUnicodeDecodeError(s, *e.args)
DjangoUnicodeDecodeError: 'utf8' codec can't decode bytes in position 4432-4434: invalid data. You passed in '\n\n\n\n\n\n<!DOblablablab (my iso-8859-1 encoded page with lots of nordic characters like æøå)
The debug toolbar works if default_charset is set to "utf-8", but that is not an option for me...
The text was updated successfully, but these errors were encountered:
Seems the rendering of the toolbar crashes when default_charset="iso-8859-1" in settings.py.
The debug toolbar works if default_charset is set to "utf-8", but that is not an option for me...
The text was updated successfully, but these errors were encountered: