Created
August 3, 2013 07:29
-
-
Save venkatesh22/6145594 to your computer and use it in GitHub Desktop.
fix for UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1451: ordinal not in range(128) in httplib python2.7 lib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
msg += message_body.encode('utf-8') | |
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 1451: ordinal not in range(128) | |
httplib python2.7 library | |
r = urllib2.Request(str(url), body, headers) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment