(result, consumed) = self._buffer_decode(data, self.errors, final)
原创
©著作权归作者所有:来自51CTO博客作者风华浪浪的原创作品,请联系作者获取转载授权,否则将追究法律责任
执行代码
# -*- coding: utf-8 -*-
file = open('label.txt', 'r')
print(type(lines))
file.close()
报错误
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 7: invalid start byte
解决办法