Python – scrittura in unicode

import codecs

fp = codecs.open('E:demo.txt', 'w', 'utf_8')
fp.write('cioè')
fp.close()

source

Leave a Reply