Read file that starts with '\xff\xfe'

Bob Gailer bgailer at
Mon Sep 8 14:43:05 CEST 2003

At 06:13 AM 9/8/2003, Gerhard Häring wrote:

>Bob Gailer wrote:
>>On Win 2K the Task Scheduler writes a log file that appears to be 
>>encoded. The first line is:
>I wrote that into a file, and used the 'file' utility from Cygwin, which 
>tells me:
>$ file t
>t: Little-endian UTF-16 Unicode character data, with CR line terminators

That's a good start. I presume I need to use, mode[, 
encoding[, errors[, buffering]]]) to read the file. What is the actual 
value of the "encoding[" parameter for "Little-endian UTF-16 Unicode 
character data, with CR line terminators"

Bob Gailer
bgailer at
303 442 2625

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- 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