Answers for "save utf 8 text file in python"

1

save utf 8 text file in python

with open('file.txt', 'w', encoding='utf-8') as f:
    f.write('Hi EveryOne')
Posted by: Guest on April-30-2022
0

python write txt utf8

import codecs

file = codecs.open("lol", "w", "utf-8")
file.write(u'\ufeff')
file.close()
Posted by: Guest on March-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language