Advertisement
Guest User

Untitled

a guest
Feb 17th, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import csv
  2. with open('eggs.csv', newline='') as csvfile:
  3. spamreader = csv.reader(csvfile, delimiter=' ', quotechar='|')
  4. for row in spamreader:
  5. print(', '.join(row))
  6.  
  7.  
  8.  
  9. Traceback (most recent call last):
  10. File "eggs.py", line 4, in <module>
  11. for row in spamreader:
  12. File "/usr/local/Cellar/python3/3.6.3/Frameworks/Python.framework/Versions/3.6/lib/python3.6/codecs.py", line 321, in decode
  13. (result, consumed) = self._buffer_decode(data, self.errors, final)
  14. UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe0 in position 73: invalid continuation byte
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement