All pastes #203645 Raw Edit

Stuff

public python v1 · immutable
#203645 ·published 2006-10-15 08:58 UTC
rendered paste body
def unicode_urlencode(params):    if isinstance(params, dict):        params = params.items()        return urlencode([(k, isinstance(v, unicode) and v.encode('utf-8') or v)                           for k, v in params])