-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20 Jan 2011, at 18:15, Jeremy Morel wrote:
Hello !
I'd like to have function which takes in input a unicode string
submitted through a form a gives back an ascii, url safe string I
could use as a unique ID in my urls.
For example: "Un éléphant ça trompe énormément" would become
"un-elephant-ca-trompe-enormement"
Do you know of a standard way to do so ?
You could use this unicode "hammer":
http://code.activestate.com/recipes/251871-latin1-to-ascii-the-unicode-hammer/
- --
Cheers,
Graham
http://bel-epa.com/gjh/
-----BEGIN PGP SIGNATURE-----
iEYEARECAAYFAk04hVkACgkQOsmLt1Nhivz6rQCdEKIudW8s9qrDeZp3oHzMOFZk
Vh4AnRQTfv4Y7BSCNMcrV7CCqxFJw7vtiQCVAgUBTTiFWVnrWVZ7aXD1AQKQqwQA
ptcyH8yeUwt9/+oFPG95/lqpAY+2QVK8VuxGEnI3lFQck4BCR7tSYpnk8a2DwMPS
CFJMnHSg8jpNiiaOKRjze7mMB9m+9epPtm1mHQZ9AhPWLRhFqOlibeZl4GwnzULf
m3ETvueDz6o/IEYRw2BJyibTeuy2FTC+Hi6e1avrptw=
=zl/w
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.