linkedin / pyexchange

Python wrapper for Microsoft Exchange
Apache License 2.0
153 stars 98 forks source link

Use only byte strings when generating Urllib2 Requests #8

Closed LeBenHL closed 10 years ago

LeBenHL commented 10 years ago
- Urllib2 requests should always be passed byte strings as recommended by http://stackoverflow.com/questions/16670140/how-to-send-utf-8-content-in-a-urllib2-request
- This fixes an issue where python is implicity encoding unicode strings in ASCII before passing the data through the socket raising an UnicodeEncodeError