티스토리 뷰
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
open(path)
==> open(path, encoding="utf-8", errors='ignore')
or
contents = contents.decode('utf-8', 'ignore')
댓글