原文:requests發送請求,讀取excel數據報錯:UnicodeEncodeError: 'latin-1' codec can't encode characters in position 69-70: Body ('登錄') is not valid Latin-1Use body.encode('utf-8') if you want to send it encoded in UTF-8

報錯信息:UnicodeEncodeError: latin codec can t encode characters in position : Body 登錄 is not valid Latin . Use body.encode utf if you want to send it encoded in UTF 原因:我讀取數據body里面有漢字,百度了一下,沒有進行untf 編碼導致, ...

2019-11-13 11:15 0 279 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM