UTF-16-LE and split() under MS-Windows XP

Martin v. Löwis martin at v.loewis.de
Wed Jul 9 15:54:47 EDT 2003


"Colin S. Miller" <colinsm.spam-me-not at picsel.com> writes:

> Where have I gone wrong, and what is the correct method
> to verify the BOM mark?

readline is not supported in the UTF-16 codec. You have to read the
entire file, and perform .split. Looking at the BOM should not be
necessary, as the UTF-16 codec will do so on its own.

Regards,
Martin





More information about the Python-list mailing list