illegal multibyte sequence in Pycharm while using exec(open('file.py').read())

510 Views Asked by At

I'm using PyCharm to run code:

exec(open('file.py').read())

while running some file I got:

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 2655: illegal multibyte sequence

Any friend can help?

0

There are 0 best solutions below