Closed jaystone776 closed 5 years ago
自问自答:
我在这里190 with open(file, 'r') as f: 加了个encoding = “utf8” ,改成 with open(file, 'r',encoding ="utf8") as f:
就可以了,但估计会影响其他编码的文件,还请作者有空看一下,有没有更好的解决方案,谢谢啦
估计是html文件和邮件的编码不同导致的 后续会修复这个问题 谢谢反馈~
附件的编码是utf8的
请尝试安装0.2.0版本 这个版本修复了很多问题 如果更新后还能复现 请重新打开这个issue
装了zmail 0.20,还是不行,用的是Python 3.7.1
UnicodeDecodeError Traceback (most recent call last)
这个issue估计还得开一下
1.麻烦提供一下报错的环境(系统、python版本、zmail版本) 2.如果可以 能提供一份报错样例吗
zmail 0.20, Python 3.7.1
附件样本已发邮件
你好 附件我尝试了一下 在zmail 0.2.1版本下成功发送,测试系统是Linux,GBK一般是在WINDOWS下的中文编码,请问发送的时候是否重命名或者有一些其他的操作呢?
pyecharts生成的html文件是utf8的可视化图形 UnicodeDecodeError Traceback (most recent call last)