Johannes Bauer <[EMAIL PROTECTED]> writes: > This is very strange - when using "utf16", endianness should be detected > automatically. When I simply truncate the trailing zero byte, I receive:
Any chance that whatever you used to "simply truncate the trailing zero byte" also removed the BOM at the start of the file? Without it, utf16 wouldn't be able to detect endianness and would, I believe, fall back to native order. -- David -- http://mail.python.org/mailman/listinfo/python-list