After creating the configuration file, the window executes pytest and reports the following error:
the essence of the error is that the code is abnormal and the utf8 format needs to be modified
solution: find iniconfig under the phthon installation path/_ Init.py file, add code encoding = ‘utf8’, as shown in the figure
Read More:
- Solve the problem of Tomcat console and HTML garbled
- Python error: command error out with exit status 1:
- The Python PIP installation module prompts the error failed to create process
- Three ways of latex supporting Chinese
- Python reads the configuration file. Ini and resolves the error
- MySQL modify character set
- Solution of Unicode decodeerror -‘utf-8 ‘codec can’t decode byte 0xc4 in position 0 – invalid continuation byte
- When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears
- JSON parse error: invalid UTF-8 solution series
- Solution to the problem of Chinese garbled in gradle console in idea
- Adding a reference in the system-user.dtsi file cannot modify the device tree file pl.dtsi
- Error: could not create the Java virtual machine Error:A Fatal exception has occurred
- Solve Python error Unicode error ‘UTF-8’
- The collapse pits of VTK projects that are not generated by cmake
- Idea starts Tomcat console with garbled code but no error
- Mongodb caused 127.0.0.1:27017 unable to connect
- @How to solve eclipse error after setter and @ getter (@ data) annotation
- ASP.NET How to deal with “unexpected character” when writing code
- Java prompt unmappable character for encoding solution
- Troubleshooting of Jenkins upgrade to 2.42 JUnit test report