在GBK解码时忽略掉不能解码的数据
self.file.write(content.encode("gbk", 'ignore').decode("gbk", "ignore"))
本文共 138 字,大约阅读时间需要 1 分钟。
在GBK解码时忽略掉不能解码的数据
self.file.write(content.encode("gbk", 'ignore').decode("gbk", "ignore"))
转载于:https://www.cnblogs.com/vevy/p/9212981.html
转载地址:https://blog.csdn.net/weixin_30642561/article/details/97312221 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!