Discuss / Python / UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 0: invalid continuation byte

Topic source

机修张

#1 Created at ... [Delete] [Delete and Lock User]

按照老师第一个示例代码尝试发送邮件,但是报错了,错误信息如题,到底是什么编码问题啊??麻烦老师了

机修张

#2 Created at ... [Delete] [Delete and Lock User]

发错位置了。。。应该发在SMTP发送邮件的板块下。。。

你的代码应该并不是以UTF-8无BOM保存的,你把它转为UTF-8无BOM就好。


  • 1

Reply