Code: Select all
>>> import chardet
>>> rawdata = open('daily_team_summary.txt', 'r').read()
>>> chardet.detect(rawdata)
{'confidence': 0.6944575439363857, 'encoding': 'ISO-8859-2'}
Moderator: Site Moderators
Code: Select all
>>> import chardet
>>> rawdata = open('daily_team_summary.txt', 'r').read()
>>> chardet.detect(rawdata)
{'confidence': 0.6944575439363857, 'encoding': 'ISO-8859-2'}
Code: Select all
$ iconv -f ISO_8859-2 -t ISO_8859-1 daily_team_summary.txt -o daily_team_summary.txt.latin1
iconv: illegal input sequence at position 35135
Thanks!Kakao wrote:I fixed it.