[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks
Santoso Wijaya
report at bugs.python.org
Tue May 20 00:33:07 CEST 2014
Santoso Wijaya added the comment:
I think you should use codecs.BOM_UTF8 rather than using hardcoded string "\xef\xbb\xbf" directly.
And why special casing UTF-8 while we're at it? What about other encodings and their BOMs?
----------
nosy: +santa4nt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21509>
_______________________________________
More information about the Python-bugs-list
mailing list