bytes vs. characters
bytes vs. characters
Posted Apr 16, 2015 23:15 UTC (Thu) by dbaker (guest, #89236)In reply to: bytes vs. characters by Cyberax
Parent article: Report from the Python Language Summit
> For example, JSON decoder in Python3 _insists_ on decoding strings as strings. Even if they have invalid UTF-8 data. It's bad, but such services do exist out there and sometimes you have to work with them.
Because the JSON spec requires that strings must be unicode?
Can't you just write a custom object_hook function to pass to the decoder to solve your problem?
