Non-ASCII identifier error in Python 3

已回答

Hello,

Even though my interpreter is correctly set to Python 3 and my file and project settings are set to UTF-8, I still get an error warning when I use non-ASCII characters for identifiers.

Like I said, both the file and the project are set to use UTF-8 encoding.

What can I do?

1

Hi flat! You can disable this inspection in Settings | Editor | Inspections | Internationalisation issues | Non-ASCII characters

0
Avatar
Permanently deleted user

Thanks Pavel!

Still and all, the inspection explicitly warns of code being written "in the wrong encoding", which can be a little misleading if your encoding does support these characters. Maybe something to consider adjusting!

2
Avatar
Permanently deleted user

Same problem here, but when I update to the Python 3.7 this problem has gone.

Try install last Python 3.7 to try to solve.

Works for me.

Good luck.

0

请先登录再写评论。