#!/usr/bin/env python # encoding: utf-8 # # Copyright (c) 2008 Doug Hellmann All rights reserved. # """ """ #end_pymotw_header import urllib url = 'http://localhost:8080/~dhellmann/' print 'urlencode() :', urllib.urlencode({'url':url}) print 'quote() :', urllib.quote(url) print 'quote_plus():', urllib.quote_plus(url)