﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
12774	Flatpages will cause unicodedecodeerror if request url contains non-ascii characters and no trailing slash	a.nesse@…	nobody	"If you have flatpages activated, it will choke on a unicodedecodeerror if the requested url contains a non-ascii character and no trailing slash.

Example url:
http://www.example.com/%20%C3%A5

This will trigger this message:

Traceback (most recent call last):

 File ""/usr/lib/python2.6/dist-packages/django/core/handlers/base.py"", line 92, in get_response
   response = callback(request, *callback_args, **callback_kwargs)

 File ""/usr/lib/python2.6/dist-packages/django/contrib/flatpages/views.py"", line 23, in flatpage
   return HttpResponseRedirect(""%s/"" % request.path)

 File ""/usr/lib/python2.6/dist-packages/django/http/__init__.py"", line 407, in __init__
   self['Location'] = redirect_to

 File ""/usr/lib/python2.6/dist-packages/django/http/__init__.py"", line 320, in __setitem__
   header, value = self._convert_to_ascii(header, value)

 File ""/usr/lib/python2.6/dist-packages/django/http/__init__.py"", line 309, in _convert_to_ascii
   value = value.encode('us-ascii')

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 3: ordinal not in range(128), HTTP response headers must be in US-ASCII format"		new	HTTP handling	1.2-alpha					Unreviewed	0	0	0	0	0	0
