how to control file output encoding?

2006-09-19 Thread MaTianyi
the encoding of file that is output by the file.write() function is always None. and the encoding attribute of the File Object is readonly. f = open('abc.txt','w') print f.encoding >>> None how can I change the file output encoding? -- http://mail.python.org/mailman/listinfo/python-list

how to control file output encoding?

2006-09-19 Thread MaTianyi
the encoding of file that is output by the file.write() function is always None. and the encoding attribute of the File Object is readonly. f = open('abc.txt','w') print f.encoding >>> None how can I change the file output encoding? -- http://mail.python.org/mailman/listinfo/python-list