You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Figure out how to make this work on Windows as well as Linux to address the following comment:
In case anyone else sees the same issue I had, when using Python 3.11 on Windows 10, I had to convert the .csv to ANSI encoding from UTF-8. Until I figured that one out, it kept erroring out with:
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x8d in position 3490: character maps to
The text was updated successfully, but these errors were encountered:
I'm not sure that's the best solution. I could PROBABLY just assume UTF-8 in my code because I know this is a file being generated from GoodReads. Something like:
with open(csv_path, newline="", encoding="UTF-8") as csv_file:
Figure out how to make this work on Windows as well as Linux to address the following comment:
In case anyone else sees the same issue I had, when using Python 3.11 on Windows 10, I had to convert the .csv to ANSI encoding from UTF-8. Until I figured that one out, it kept erroring out with:
UnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x8d in position 3490: character maps to
The text was updated successfully, but these errors were encountered: