Read file that starts with '\xff\xfe'

Bob Gailer bgailer at alum.rpi.edu
Mon Sep 8 08:02:02 EDT 2003


On Win 2K the Task Scheduler writes a log file that appears to be encoded. 
The first line is:

'\xff\xfe"\x00T\x00a\x00s\x00k\x00 
\x00S\x00c\x00h\x00e\x00d\x00u\x00l\x00e\x00r\x00 
\x00S\x00e\x00r\x00v\x00i\x00c\x00e\x00"\x00\r\x00\n'

My goal is to read this file and process it using Python string processing.

I am disappointed in the codecs module documentation. I had hoped to find 
the answer there, but can't.

I presume this is an encoding, and that '\xff\xfe' defines the encoding. 
How does one map '\xff\xfe' to an "encoding".

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.506 / Virus Database: 303 - Release Date: 8/1/2003


More information about the Python-list mailing list