Reversing the above URL with non-ascii characters returns a properly
percent-encoded string (i.e. 'uml%C3%A4ute_in_der_url').
But a problem occurs while passing the named URL to `reverse_lazy` because
around line 164 in `django.utils.functional.lazy.__mod__` a string
formatting takes place which leads to a ValueError due to the unescaped
percent-encoding.
> ValueError: unsupported format character 'C' (0x43)
{{{
return bytes(self) % rhs
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22379>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => worksforme
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
Hi,
I can't seem to be able to reproduce this:
{{{#!python
# urls.py
...
url(r'^é/$', view=..., name='foo')
...
>>> print(reverse('foo'))
/%C3%A9/
>>> print(reverse_lazy('foo'))
/%C3%A9/
}}}
Can you provide more information as to how you can trigger that error?
Thanks
--
Ticket URL: <https://code.djangoproject.com/ticket/22379#comment:1>