File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\site-packages\pigar\parser.py", line 172, in _read_code
return f.read()
File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 90: character maps to <undefined>
hi,
using it on windows i got this
https://github.com/damnever/pigar/blob/7b0395697f3af7dc0a6c5ee45ee554fd1801c8d3/pigar/parser.py#L171
i fixed it with
with open(fpath, 'rb') as f: