#8391: slugify template filter poorly encodes non-English strings
---------------------------------------------+------------------------------
          Reporter:  bjornkri                |         Owner:  nobody
            Status:  reopened                |     Milestone:        
         Component:  Template system         |       Version:  SVN   
        Resolution:                          |      Keywords:        
             Stage:  Design decision needed  |     Has_patch:  0     
        Needs_docs:  0                       |   Needs_tests:  0     
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Comment (by HM):

 Another datapoint: In my language both 'å' and 'ø' are valid words in and
 of themselves... the standard slugify reduces both of these to ''. Oopsy.
 'æææææææ' is a popular way to describe a scream, it also becomes... ''.

 I have my own slugify-function that turns the unicode-string into NFKD
 then slugifys that, then checks that the string isn't empty and if it is:
 adds a dummy string + the datetime + random string. This is independent of
 locale, which I consider a bonus.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8391#comment:22>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to