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
Similar Posts:
- [Solved] Error when Python reads a file Unicode decodeerror
- [Solved] Python error: UnicodeDecodeError:’gbk’ codec can’t decode byte 0xb0 in position 166: illegal multibyte sequence
- [Solved] Yaml Text Error: UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte : illegal multibyte sequence
- [Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 128: illegal multibyte sequence
- [Solved] Python Error: UnicodeDecodeError: ‘gb2312’ codec can’t decode byte 0xa4 in position… : illegal multibyte sequence
- [Solved] UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa5 in position 1508: illegal multibyte sequence
- [Solved] Pytest: error: unrecognized arguments error reporting solution
- [Solved] Unicode decode error in the background when the robot framework is running
- [Solved] XML Read Error: Invalid byte 1 of 1-byte UTF-8 sequence
- [Solved] DOM parsing XML Error: Content is not allowed in prolog