#8726: Unicode-errors with url-tags after changeset 8760
------------------------------------+---------------------------------------
          Reporter:  Uninen         |         Owner:  mtredinnick       
            Status:  new            |     Milestone:  1.0               
         Component:  Uncategorized  |       Version:  SVN               
        Resolution:                 |      Keywords:  url, urls, unicode
             Stage:  Unreviewed     |     Has_patch:  0                 
        Needs_docs:  0              |   Needs_tests:  0                 
Needs_better_patch:  0              |  
------------------------------------+---------------------------------------
Comment (by Uninen):

 Thank you for specifying the problem. It seems that the core of this
 problem is that the argument for url-tag is *not* unicode but a regular
 string. Following test produces exactly the same error that I have on some
 of my project URLs:

 (in /tests/regressiontests/templates/tests.py )

 {{{
 'url08': (u'{% url метка_оператора v %}', {'v': 'Ω'},
 '/url_tag/%D0%AE%D0%BD%D0%B8%D0%BA%D0%BE%D0%B4/%CE%A9/'),
 }}}

 Why this is, I don't know (yet), because in my case the arguments are
 normal model fields or model methods which should in every case give
 unicode strings. But still, I think we should be liberal in what to accept
 for the url-tag (ie. force arguments to unicode instead of raising an
 exception), right? At least with previous revisions all of my url-tags
 worked OK.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8726#comment:9>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to