pandas CSV讀取編碼問題記錄

1. 寫入CSV文件,本地excel打開亂碼問題 使用編碼 ‘utf_8_sig' 解決python data.to_csv('news.csv',encoding = 'utf_8_sig') 2. 讀入CSV文件,出現編碼錯誤問題 UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb7 in position 23: invalid s
相關文章
相關標籤/搜索