[issue7651] Python3: guess text file charset using the BOM

Florent Xicluna report at bugs.python.org
Sat Jul 7 16:13:21 CEST 2012


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

For the implementation part, there's something which already plays with the BOM in the tokenize module.

See tokenize.open(), which uses tokenize.detect_encoding() to read the BOM in some cases.

----------
nosy: +flox

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7651>
_______________________________________


More information about the Python-bugs-list mailing list