> (r'^(?P<version>[-0-9A-Za-z]+)/(?P<term>[-_.0-9A-Za-zıİğĞüÜşŞöÖçÇ ] > +)/$', 'search_in_all_packages') > then > (u'^(?P<version>[-0-9A-Za-z]+)/(?P<term>[-_.0-9A-Za-zıİğĞüÜşŞöÖçÇ ] > +)/$', 'search_in_all_packages').encode("utf-8") > > but none of them worked.
[Typo: misplaced .encode("utf-8") in mail.] I managed to get it work: (u'^(?P<version>[-0-9A-Za-z]+)/(?P<term>[-_.0-9A-Za-zıİğĞüÜşŞöÖçÇ ] +)/$', 'search_in_all_packages'), The key point seems to be using (u'^ ... instead of (r'^... Maybe I had a problem with caching and the fact that I didn't use u'^ for the other rules. I wish I could specify all the unicode letters (for all other languages apart from Turkish) as something like \w. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---