Closed krmaxwell closed 9 years ago
Should we move this to Python 3 and get it over with?
It's worth considering, although that certainly warrants more investigation and planning.
This is a duplicate of #55 . I am closing the other one.
oops, I thought that one was from another project, I even used the same reaction graphic!
The projects may change, but the Unicode rage remains the same.
Fixed by #103
Traceback (most recent call last): File "winnower.py", line 184, in
winnow('crop.json', 'crop.json', 'enriched.json')
File "winnower.py", line 180, in winnow
json.dump(enriched, f, indent=2)
File "/usr/lib/python2.7/json/init.py", line 189, in dump
for chunk in iterable:
File "/usr/lib/python2.7/json/encoder.py", line 431, in _iterencode
for chunk in _iterencode_list(o, _current_indent_level):
File "/usr/lib/python2.7/json/encoder.py", line 332, in _iterencode_list
for chunk in chunks:
File "/usr/lib/python2.7/json/encoder.py", line 313, in _iterencode_list
yield buf + _encoder(value)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe1 in position 27: unexpected end of data