jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

feature-request: improve behavior for tabs with non-ASCII characters #277

Open villares opened 4 years ago

villares commented 4 years ago

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: