遇到LookupError: unknown encoding: "utf-8"; format=flowed; delsp=yes报错的同学,可以尝试将guess_charset函数里的strip部分改成:
charset = content_type[pos + 8:].strip('; format=flowed; delsp=yes')
参考信息:https://blog.51cto.com/acevi/2442415
Sign in to make a reply
Colorful
遇到LookupError: unknown encoding: "utf-8"; format=flowed; delsp=yes报错的同学,可以尝试将guess_charset函数里的strip部分改成:
charset = content_type[pos + 8:].strip('; format=flowed; delsp=yes')
参考信息:https://blog.51cto.com/acevi/2442415