Read file that starts with '\xff\xfe'
gh at ghaering.de
Mon Sep 8 14:13:36 CEST 2003
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
$ file t
t: Little-endian UTF-16 Unicode character data, with CR line terminators
AFAIK the codecs module doesn't have autodetection of codecs.
More information about the Python-list