Why aren't POST names with Unicode sent correctly when using multipart/form-data?
I want to sent a POST request with a file attached, though some of the field names have Unicode characters in them. But they aren't received correctly by the server, as seen below: >>> # normal, without unicode >>> resp = requests.post('http://httpbin.org/post', data={'snowman': 'hello'}, files={('kitten.jpg', open('kitten.jpg', 'rb'))}).json()['form'] >>> resp {u'snowman': u'hello'} >>> >>> # with unicode, see that the name has become 'null' >>> resp = requests.post('http://httpbin.org/post', data={'☃': 'hello'}, files={('kitten.jpg', open('kitten.jpg', 'rb'))}).json()['form'] >>> resp {u