[New-bugs-announce] [issue11010] Unicode BOM left in loaded text
report at bugs.python.org
Tue Jan 25 22:25:59 CET 2011
New submission from onpon4 <onpon4 at yahoo.com>:
This is for Python 2.7.1. It isn't an issue on 2.6.5 and I haven't tested it on 3.1.
Quite simply, the Unicode BOM (unichr(65279)) is included in the text loaded from a UTF-8 text file. This can cause issues in some cases, but is easily worked around by calling "s.strip(unichr(65279))" on the first line of loaded text.
components: IO, Unicode
title: Unicode BOM left in loaded text
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce