Python - scrittura in unicode


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. import codecs
  2.  
  3. fp = codecs.open('E:\\demo.txt', 'w', 'utf_8')
  4. fp.write('cioè')
  5. fp.close()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.