Write Unicode strings directly to flout : Encode File : Development PYTHON examples


PYTHON examples » Development » Encode File »

 

Write Unicode strings directly to flout




import codecs
flout = codecs.open('uni.txt','w','latin-1','replace')


flout.write(u' e')
flout.close()

           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Development
» Encode File