写入文件报错UnicodeEncodeError: 'gbk' codec can't encode character '\ufffd' in position 2494: illegal multibyte sequence 解决方法
with open('./abc.html', 'w', encoding='utf-8') as fp: fp.write(respone)
加入encoding='utf-8' 即可
标签:ufffd,multibyte,sequence,illegal,character,2494,codec,encode From: https://www.cnblogs.com/modys/p/17705183.html