pycharm UnicodeEncodeError: ‘gbk‘ codec can‘t encode character ‘\u0e21‘ in position 17: illegal mult

The command line output is normal, but pycharm prints an error. I tried gbk and utf-8 file encoding but neither worked. As shown below:

It turns out that you need to set the system and project-level encoding in pycharm and set them to utf-8. As shown below:

 

Guess you like

Origin blog.csdn.net/u011519550/article/details/123444079