In Python Mode, if you have non-ASCII text on a tab (.py file), you get
SyntaxError: Non-ASCII character in file '/var/folders/rn/ ... .py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details, unless you add something like # -*- coding: utf-8 -*- at the top of the file.
This issue happens a lot more in places where we have Non-English speaking people, so in my experience as an educator, when this happens, the link to pep-0263 documentation is not very helpful. Could we agree on and have a more beginner friendly behavior?
Options:
Link to a py.processing.org reference page explaining this issue in simple terms;
A short suggestion to add # -*- coding: utf-8 -*- to the offending file;
Adding the encoding directive to the fille (maybe asking permission to do it?).
In Python Mode, if you have non-ASCII text on a tab (.py file), you get
SyntaxError: Non-ASCII character in file '/var/folders/rn/ ... .py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
, unless you add something like# -*- coding: utf-8 -*-
at the top of the file.This issue happens a lot more in places where we have Non-English speaking people, so in my experience as an educator, when this happens, the link to pep-0263 documentation is not very helpful. Could we agree on and have a more beginner friendly behavior?
Options:
# -*- coding: utf-8 -*-
to the offending file;