UnicodeEncodeError: 'latin-1' codec can't encode characters in position 1-5: Body ('') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 1-5: Body ('') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!
No Good?
Help us improve our code examples by registering to vote on and add answers. Join our developer community to improve your dev skills and code like a boss!