[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

Chris Rebert report at bugs.python.org
Fri May 16 06:45:26 CEST 2014


Chris Rebert added the comment:

The new JSON RFC now at least mentions BOM handling:
https://tools.ietf.org/html/rfc7159#section-8.1 :
> Implementations MUST NOT add a byte order mark to the beginning of a
> JSON text.  In the interests of interoperability, implementations
> that parse JSON texts MAY ignore the presence of a byte order mark
> rather than treating it as an error.

----------
nosy: +cvrebert

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


More information about the Python-bugs-list mailing list