UnicodeEncodeError: 'latin-1' codec can't encode characters in position 117-118: Body ('朗逸') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
在里面有中文 字符串后面 加个
.encode('utf-8')
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 117-118: Body ('朗逸') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
在里面有中文 字符串后面 加个
.encode('utf-8')