UnicodeEncodeError: ‘latin-1’ codec can’t encode characters in position问题
问题:
代码语言:javascript
复制
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 157-158:
Body ('耀') is not valid Latin-1. Use body.encode('utf-8')
if you want to send it encoded in UTF-8