That's fine if can go into file and fix it.
Here some way to get around problems.
Here some way to get around problems.
>>> s = b'2018-03-26,HQ Service Center,Handset,Samsung Galaxy S9+ and Charger \xffBlack,1,Sales\r\n' >>> s.decode('utf-8') Traceback (most recent call last): File "<stdin>", line 1, in <module> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 68: invalid start byte 'utf-8' codec can't decode byte 0xff in position 68: invalid start byte >>> # Try other codec >>> s.decode('latin-1') '2018-03-26,HQ Service Center,Handset,Samsung Galaxy S9+ and Charger ÿBlack,1,Sales\r\n' >>> # Just ignore error >>> s.decode('utf-8', errors='ignore') '2018-03-26,HQ Service Center,Handset,Samsung Galaxy S9+ and Charger Black,1,Sales\r\n' >>> # Replace with fill in(?) where error is >>> s.decode('utf-8', errors='replace') '2018-03-26,HQ Service Center,Handset,Samsung Galaxy S9+ and Charger �Black,1,Sales\r\n'