Closed Hecate2 closed 9 months ago
On Windows without utf-8 encoding by default, there can be errors like UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 52: illegal multibyte sequence when contracts are being read. Related issue: None
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 52: illegal multibyte sequence
Using encoding='utf-8' for contracts
I cloned https://github.com/RockX-SG/stake and made brownie work with the contracts on Windows 10.
Pretty straightforward fix, thanks
What I did
On Windows without utf-8 encoding by default, there can be errors like
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 52: illegal multibyte sequence
when contracts are being read. Related issue: NoneHow I did it
Using encoding='utf-8' for contracts
How to verify it
I cloned https://github.com/RockX-SG/stake and made brownie work with the contracts on Windows 10.
Checklist