I'm trying to convert a python file into an executable. So far so good. But when I try to run the executable I get the following error message:
SyntaxError: Non-ASCII character '\x90' in file hello.exe on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details"
This problem is widely documented, but using the given solution of adding
#-*- coding: utf-8 -*-
at the start of the line is not solving my issue.
I'm using Notepad++ editor and have even enforced the utf-8 encoding explicitly but to no avail.
Is there anything that I'm missing?