:::

5-3 文字檔編碼判斷

 

安裝模組:chardet

import chardet     
rawdata = open(infile, "rb").read() 
result = chardet.detect(rawdata) 
charenc = result['encoding']

Google網站翻譯工具列

站內搜尋