file - codecs - unicode ???
Sébastien Libert
sebastien.libert at comexis.com
Mon Mar 12 10:29:42 EST 2001
Hi,
here is a sample of what i do :
>>> h=open("c:\\myfile.log")
>>> line=h.readline()
>>> line
'\377\3760\000.\0000\0000\000\011\000i\000n\000f\000o\000\011\000L\000o\000g
\000_\000S\000t\000a\000n\000d\000a\000r\000d\000\011\000n\000g\000L\000o\00
0g\000\015\000\012'
What can i do with this kind of thing ?????
I want to convert thid in ascii.... how can i do thid in python ?
I use python 2.0 on win32 !!!
thx to answerd ;-)
More information about the Python-list
mailing list