0

I get the error 'utf-8'.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xca in position 5: invalid continuation byte*

I don't know why this happens. I am trying this:

path = "/Users/Lieve/Desktop/"
contents = open(path+"100_names.txt")
lines = contents.readlines()
jalazbe
  • 1,801
  • 3
  • 19
  • 40
  • This might help you: https://stackoverflow.com/questions/12468179/unicodedecodeerror-utf8-codec-cant-decode-byte-0x9c Try to look for answers before posting a question. – jalazbe Nov 12 '18 at 13:44
  • Possible duplicate of [UnicodeDecodeError: 'utf8' codec can't decode byte 0x9c](https://stackoverflow.com/questions/12468179/unicodedecodeerror-utf8-codec-cant-decode-byte-0x9c) – mahesh Nov 12 '18 at 13:49

0 Answers0