Mar-22-2024, 05:42 PM
This error.
SyntaxError: Non-UTF-8 code starting with '\xe3' in file D:\Projetos\M74Chat\M74Chat\config.py on line 4, but no encoding decared;
see https://peps.python.org/pep-0263/ for details
My code.
import psycopg2
connection made successfully, generates this error
# and cursor.execute('SELECT * FROM contact')
I don't believe the only solution to this problem is to put in all .py files on the first line: "# coding: utf-8", serious?
SyntaxError: Non-UTF-8 code starting with '\xe3' in file D:\Projetos\M74Chat\M74Chat\config.py on line 4, but no encoding decared;
see https://peps.python.org/pep-0263/ for details
My code.
import psycopg2
connection made successfully, generates this error
# and cursor.execute('SELECT * FROM contact')
I don't believe the only solution to this problem is to put in all .py files on the first line: "# coding: utf-8", serious?