aboutcode-org / cwe2

Common weakness enumeration library for Python (maintained fork of https://github.com/Julian-Nash/cwe )

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 4771: illegal multibyte sequence

makerdd opened this issue · comments

On my Windows10, the default decode mode is gbk.
In this file cwe2\database\699.csv line 418 col 3402, gbk can't decode the 0xE2 0x80 0x9C.

Suggestion:
When open *.csv files, should explicitly use encoding='utf-8'.

Thank you very much for your project!

It's my pleasure and sorry for the late reply, i will handle this 👍