When Python "Syntax Error: Non-ASCII character ~" appears

# -*- coding: utf-8 -*-

confirm

If it is UTF-8 in Python3, it is not necessary to specify coding. Reference: https://pep8-ja.readthedocs.io/ja/latest/

Files using ASCII (Python 2) or UTF-8 (Python 3) should not contain encoding declarations.

Recommended Posts

When Python "Syntax Error: Non-ASCII character ~" appears
Error when playing with python
#python Python Japanese syntax error avoidance
[python] Error when installing library ramkan
Error when building mac python environment
[EC2] Error: Remedy for Non-ASCII character'\ xe8'
Error when installing a module with Python pip
python character code
Python Error Handling
Character encoding when using csv module of python 2.7.3
with syntax (Python)
Error when trying to install psycopg2 in Python
Python syntax-control syntax
When Attribute Error: Can't get attribute'class name' on <module'__main__' (built-in)> appears when loading python pickle
Error due to conflict between python when using gurobi
When you get an error in python scraping (requests)
Python Node.js character manipulation
Python Not Implemented Error
About Python3 character code
Python error list (Japanese)
Python control syntax (memories)
When Runtime Error: maximum recursion depth exceeded while pickling an object appears in python pickle
[Python] for statement error
Import error resolution record when touching Python code from VSCode
[Python: UnicodeDecodeError] One of the error solutions when reading CSV
What to do when "SSL: CERTIFICATE_VERIFY_FAILED _ssl.c: 1056" appears in Python