#8726: Unicode-errors with url-tags after changeset 8760
--------------------------------+-------------------------------------------
Reporter: Uninen | Owner: nobody
Status: new | Milestone: 1.0
Component: Uncategorized | Version: SVN
Keywords: url, urls, unicode | Stage: Unreviewed
Has_patch: 0 |
--------------------------------+-------------------------------------------
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.
--
Ticket URL: <http://code.djangoproject.com/ticket/8726>
Django Code <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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---