trying koying's patch for #94

This commit is contained in:
Rob Weber 2017-01-23 09:57:01 -06:00
parent 405783cde0
commit b7c24896c9

View File

@ -412,5 +412,8 @@ def params_to_urlencoded(params):
return o.encode('utf8') return o.encode('utf8')
else: else:
return str(o) return str(o)
utf8_params = {encode(k): encode(v) for k, v in params.iteritems()} utf8_params={}
for k, v in params.iteritems():
utf8_params[encode(k)]= encode(v)
return urllib.urlencode(utf8_params) return urllib.urlencode(utf8_params)