I tried this: but it does not work.
print urllib.urlencode("http://"+SITE_DOMAIN+"/go/")
I want to turn it into a string with URL encodings
Have you been looking for quote () or quote_plus () instead?
>>> urllib.quote("http://spam.com/go/") 'http%3A%2F%2Fspam.com%2Fgo%2F'
You are looking for urllib.quote().
urllib.quote()