标签:char codec amp error: har rac osi encode 代码
报错代码:
city_form=self.payload+"&province="+str(pro)
报错内容:
UnicodeEncodeError: ‘latin-1‘ codec can‘t encode characters in position 80-81
解决方法:
city_form=self.payload+"&province="+str(pro).encode("utf-8").decode("latin1")
[已解决]报错:UnicodeEncodeError: 'latin-1' codec can't encode characters in position 80-81
标签:char codec amp error: har rac osi encode 代码
原文地址:https://www.cnblogs.com/hankleo/p/12696935.html