python編碼問題 utf-8 codec can not decode byte

問題描述 在用python讀txt文件的時候遇到了編碼問題:‘utf-8’ codec can’t decode byte 0xb70,一樣的代碼以前在python2的時候是不會出現問題的。用百度找了一下也沒能找到有效的解決方法,後來在stackoverflow上找到了相似的問題。 stackoverflow問題html 解決方案 str = unicode(str, errors='replac
相關文章
相關標籤/搜索