import chardet

f = open('/path/file.txt',r)
data = f.read()
print(chardet.detect(data)
05-11 09:41