Maverick
Maverick copied to clipboard
如何解决错误 UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 132: character maps to <undefined> decoding with 'windows-1251' codec failed
hi. 我运行python3 mvrk.py --config ./demo_src/config.py --source_dir ./demo_src/ --build_dir ./dist/ 后,显示:
Site prefix: /
Source dir: ./demo_src/
Build dir: ./dist/
Start clean...done.
Loading contents...
Traceback (most recent call last):
File "C:\Users\12799\maverick\Maverick\Utils.py", line 99, in safe_read
return f.read()
^^^^^^^^
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\12799\maverick\mvrk.py", line 45, in
12799@DESKTOP-B6LK9IO MINGW64 ~/maverick$
谢谢回复!
看起来主要是因为你的文件用了无法识别的文件编码,可以尝试转换成常见的编码,比如 utf-8 试试看