Python 3.0 automatic decoding of UTF16

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Dec 5 18:35:44 EST 2008


On Fri, 05 Dec 2008 12:00:59 -0700, Joe Strout wrote:

>> So UTF-16 has an explicit EOF marker within the text?
> 
> No, it does not.  I don't know what Terry's thinking of there, but text
> files do not have any EOF marker.  They start at the beginning
> (sometimes including a byte-order mark), and go till the end of the
> file, period.

Windows text files still interpret ctrl-Z as EOF, or at least Windows XP 
does. Vista, who knows?


-- 
Steven



More information about the Python-list mailing list