[issue11010] Unicode BOM left in loaded text
onpon4
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
messages: 127055
nosy: onpon4
priority: normal
severity: normal
status: open
title: Unicode BOM left in loaded text
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11010>
_______________________________________
More information about the Python-bugs-list
mailing list