I'm using url-templatetag across my projects. After Changeset r8760 many of (all?) those tags raise an UnicodeDecodeError?.
Here is a snippet from the exception:
Exception Type: TemplateSyntaxError at /blogi/
Exception Value: Caught an exception while rendering: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
Original Traceback (most recent call last):
File "/Library/Python/2.5/site-packages/django/template/debug.py", line 71, in render_node
result = node.render(context)
File "/Library/Python/2.5/site-packages/django/template/defaulttags.py", line 168, in render
nodelist.append(node.render(context))
File "/Library/Python/2.5/site-packages/django/template/defaulttags.py", line 168, in render
nodelist.append(node.render(context))
File "/Library/Python/2.5/site-packages/django/template/defaulttags.py", line 393, in render
url = reverse(self.view_name, args=args, kwargs=kwargs)
File "/Library/Python/2.5/site-packages/django/core/urlresolvers.py", line 250, in reverse
*args, **kwargs)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7: ordinal not in range(128)
Tag used:
{% url aino.views.tag_detail tag=tag %}
Related line in URLConf:
url(r'^tagit/(?P<tag>\S+)/$', "aino.views.tag_detail", name="tag_detail"),
(Tags in above code may contain unicode characters.)
My test environment is on Mac OS X 10.5, python 2.5, every file is utf-8 encoded.