#26971: UnicodeDecodeError with non-ASCII string in quoted URL -------------------------------------+------------------------------------- Reporter: Oleg78 | Owner: nobody Type: Bug | Status: new Component: HTTP handling | Version: 1.8 Severity: Normal | Resolution: Keywords: UnicodeDecodeError | Triage Stage: UTF-8 windows-1251 URL wsgi | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by claudep):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: This was supposed to be fixed by #19508 (hence the `runserver` not failing). However, I suspect that in your production deployment, the received URI is already percent-decoded higher in the stack (Apache, mod_wsgi,...), so Django is receiving `/tag/\xe7\xe0\xea\xeb\xe0\xe4\xea\xe0/` instead of `/tag/%E7%E0%EA%EB%E0%E4%EA%E0/`. In that case, we may try to "repercent" the URI in case of `UnicodeDecodeError`. Loïc, could you advise? -- Ticket URL: <https://code.djangoproject.com/ticket/26971#comment:1> Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.16635cbf59557052bb05789354fd7ca8%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.