Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ascii 文字を utf-8 に変換しようとしています。以下の小さな例は、ASCII 文字を返します。
chunk = chunk.decode('ISO-8859-1').encode('UTF-8') print chardet.detect(chunk[0:2000])
戻り値:
{'confidence': 1.0, 'encoding': 'ascii'}
どうして?