Encode file: latin : Encode File « Development « Python






Encode file: latin


import sys, codecs
sys.stdout = codecs.EncodedFile(sys.stdout,'latin-1', 'utf-8')


           
       

Related examples in the same category

1.Write Unicode strings directly to flout