woolen-sheep/md2report

windows下文件编码问题(需要添加俩encoding)

Closed this issue · 0 comments

md2report.py的第25行和第48行添加, encoding='utf-8'

第25行不添加会报错:

发生异常: UnicodeDecodeError
'gbk' codec can't decode byte 0x8c in position 56: illegal multibyte sequence

第48行不添加会报错:

.md is not UTF-8 encoded: falling back to latin1.[WARNING] Could not fetch resource 碌梅脫脙鹿脴脧碌.png: replacing image with description[WARNING] Could not fetch resource 鲁玫麓脦脢鹿脫脙.png: replacing image with description[WARNING] Could not fetch resource 鲁玫麓脦脢鹿脫脙-2.png: replacing image with description
[WARNING] Could not fetch resource 卤脿脗毛.png: replacing image with description
[WARNING] Could not fetch resource 卤脿脗毛-2.png: replacing image with description
[WARNING] Could not fetch resource 卤脿脗毛-3.png: replacing image with description
[WARNING] Could not fetch resource 陆芒脗毛.png: replacing image with description[WARNING] Could not fetch resource 陆芒脗毛-2.png: replacing image with description
[WARNING] Could not fetch resource 脢盲鲁枚卤脿脗毛.png: replacing image with description
[WARNING] Could not fetch resource 脢盲鲁枚脢梅.png: replacing image with description
[WARNING] Could not fetch resource 脢盲鲁枚脢梅-2.png: replacing image with description

添加后能正常运行。

Great job on the development of this project, keep up the good work!