Zapisz plik tekstowy UTF 8 w Python
with open('file.txt', 'w', encoding='utf-8') as f:
f.write('Hi EveryOne')
Grieving Grivet
with open('file.txt', 'w', encoding='utf-8') as f:
f.write('Hi EveryOne')
import codecs
file = codecs.open("lol", "w", "utf-8")
file.write(u'\ufeff')
file.close()