File size: 185 Bytes
963d10b
 
 
 
1
2
3
4
5
import codecs
text = codecs.open('hf_files_june12.txt', 'r', 'utf-16le').read()
with codecs.open('hf_files_june12_utf8.txt', 'w', 'utf-8') as f:
    f.write(text.replace('\ufeff', ''))