Tag Archives: Pycharm Pytest Error

[Solved] Pycharm Pytest Error: UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xaa in position 171: illegal multibyte sequence

UnicodeDecodeError:’gbk’ codec can’t decode byte 0xaa in position 171: illegal multibyte sequence

 

Check if there is a pytest.ini configuration file in the root directory.

Solution:

1. It is necessary to delete all the Chinese comments and also delete

2. In the pytest.ini file, change utf-8 to gbk in the lower right corner