I\'m trying to get a Python 3 program to do some manipulations with a text file filled with information. However, when trying to read the file I get the following error:
Stop wasting your time, just add the following encoding="cp437" and errors='ignore' to your code in both read and write:
encoding="cp437"
errors='ignore'
open('filename.csv', encoding="cp437", errors='ignore') open(file_name, 'w', newline='', encoding="cp437", errors='ignore')
Godspeed