with open('frutas.txt') as arquivo:
conteudo = arquivo.read()
print(conteudo)
o sistema me retorna o erro abaixo:
UnicodeDecodeError Traceback (most recent call last) in () 1 with open('frutas.txt') as arquivo: ----> 2 conteudo = arquivo.read() 3 print(conteudo)
/usr/lib/python3.6/codecs.py in decode(self, input, final) 319 # decode input (taking the buffer into account) 320 data = self.buffer + input --> 321 (result, consumed) = self.bufferdecode(data, self.errors, final) 322 # keep undecoded input until the next call 323 self.buffer = data[consumed:]
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7 in position 19: invalid continuation byte