Message159368
> Things are a little more complicated. '123' is not a valid JSON
> according to RFC 4627 (the top-level element can only be an object or
> an array). This means that the autodetection algorithm will not always
> work for such non-standard data.
The autodetection algorithm needn't examine all 4 first bytes. If the 2
first bytes are non-zero, you have UTF-8 data. Otherwise, the JSON text
will be at least 4 bytes long (since it's either UTF-16 or UTF-32). |
|
Date |
User |
Action |
Args |
2012-04-26 14:21:40 | pitrou | set | recipients:
+ pitrou, barry, georg.brandl, hhas, ezio.melotti, eric.araujo, r.david.murray, docs@python, antlong, serhiy.storchaka, Balthazar.Rouberol |
2012-04-26 14:21:40 | pitrou | link | issue10976 messages |
2012-04-26 14:21:39 | pitrou | create | |
|