安裝模組:chardet
import chardet rawdata = open(infile, "rb").read() result = chardet.detect(rawdata) charenc = result['encoding']
進階搜尋