Character encoding error on Windows
miguelrochefort opened this issue · 0 comments
miguelrochefort commented
I get this error when I run export.py
or list(my.reddit.saved())
on Windows:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\migue\.config\my\my\config\repos\rexport\dal.py", line 157, in saved
for s in self._accumulate(what='saved'):
File "C:\Users\migue\.config\my\my\config\repos\rexport\dal.py", line 139, in _accumulate
for f, r in self.raw():
File "C:\Users\migue\.config\my\my\config\repos\rexport\dal.py", line 133, in raw
yield f, json.load(fo)
File "C:\Users\migue\Anaconda3\lib\json\__init__.py", line 293, in load
return loads(fp.read(),
File "C:\Users\migue\Anaconda3\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 38807: character maps to <undefined>