On Mon, 2009-08-03 at 12:27 +0300, Mirat Bayrak wrote:
> Hi i have an account system that you have to validate your email after
> you created an account. My validation url is lik :
> www.foo.com/account/confirm/username/keyyyyyyyyyyy
> 
> But there is a problem, sometimes username contains non html safe
> chars for example : âlice, or süleyman cant go that adress...
> 
> So, what should i do? should i restrict usuable characters on
> usernames or is there another solution?

Django provides some utility functions for creating valid URL's from
UTF-8 strings. Have a look at the iri_to_uri() function, documented
here:

http://docs.djangoproject.com/en/dev/ref/unicode/#uri-and-iri-handling

(Yes, that is a little bit hidden. Linking things in from all the useful
places is a continual process.)

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to