tags:

views:

519

answers:

2

Is it safe to use Python UUID module generated values in URL's of a webpage? Wnat to use those ID's as part of URL's. Are there any non-safe characters ever generated by Python UUID that shouldn't be in URL's?

+5  A: 

They are safe. See here for all possible output formats. All of them are readable strings or ints.

ryeguy
+7  A: 

It is good practice to always urlencode data that will be placed into URLs. Then you need not be concerned with the specifics of UUID or if it will change in the future.

gahooa