Discuss / Python / LookupError: unknown encoding: "utf-8"; format=flowed; delsp=yes解决办法

LookupError: unknown encoding: "utf-8"; format=flowed; delsp=yes解决办法

Topic source

Colorful

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

遇到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


  • 1

Reply