[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
onpon4 added the comment: Like this: f = io.open() f.readline() -- ___ Python tracker <http://bugs.python.org/issue11010> ___ ___ Python-bugs-list mailin

[issue11010] Unicode BOM left in loaded text

2011-01-25 Thread onpon4
New submission from onpon4 : 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