UnicodeDecodeError when reading file in Python
UnicodeDecodeError when reading file in Python Question: I am currently learning Python and came across the following error: Traceback (most recent call last): File "file.py", line 22, in module for word in file.read(): File "C:UsersuserAppDataLocalContinuumAnaconda3libencodingscp1252.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 6552: character maps to undefined …