darknet-ocr
darknet-ocr copied to clipboard
UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position...
env: python 3.7.1 web.py==0.40.dev0
problem: return Template(open(path).read(), filename=path, **self._keywords) UnicodeDecodeError: 'gbk' codec can't decode byte 0xaf in position 410: illegal multibyte sequence
temporary solution
open the file lib\site-packages\web\template.py
old: return Template(open(path).read(), filename=path, **self._keywords) new: return Template(open(path,encoding='utf-8').read(), filename=path, **self._keywords)
有用
有用