Sep-05-2017, 01:15 PM
Didn't read the whole post, but the problem seems to be related to the encoding.
1- Try setting
2- Try using codecs.
1- Try setting
chcp 65001
in your console, which changes the code page to UTF-8. It could be that console encoding is different.2- Try using codecs.
import codecs with codecs.open("EU-1H.tx.txt",encoding='utf-8') as f: .... ....