#12186: HttpResponseRedirect(request.get_full_path()) fails with UnicodeEncodeError
for international URL
---------------------------+------------------------------------------------
Reporter: oldium | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
The problem is in get_full_path() when the path component contains unicode
data. The path (unicode) cannot be used in the HttpResponseRedirect. The
iri_to_uri should be used for the whole string I think. The simplest
example that triggers the problem is this (when the URL contains
international characters)
{{{
def view(request):
return HttpResponseRedirect(request.get_full_path())
}}}
--
Ticket URL: <
http://code.djangoproject.com/ticket/12186>
Django <
http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django updates" group.
To post to this group, send email to
django-updates@...
To unsubscribe from this group, send email to
django-updates+unsubscribe@...
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en-~----------~----~----~----~------~----~------~--~---