Read file that starts with '\xff\xfe'

Bob Gailer bgailer at
Mon Sep 8 14:02:02 CEST 2003

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


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
303 442 2625
-------------- next part --------------

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

More information about the Python-list mailing list