(A) eclipse Window Menu editors settings:
Eclipse toolbar-> window-> preferences-> General-> editors-> text editiors-> spelling
(B) eclipse Window Menu workspace settings:
Eclipse toolbar-> window-> preferences-> General-> Workspace
(C) PythonSource codeAdd an additional encoding instruction to the header. Add an additional encoding instruction in the header of Your python module to let the importer parse your module using the specified encoding, as said on page 324 of version 2 of Python core programming. If the following line does not show the header of a file, the following error occurs when compiling and running a python file containing Chinese characters.
D: \ python27 \ privatelib> Python sample. py
File "sample. py", line 1
Syntaxerror: Non-ASCII character '\ xFF' in file namespaces. py on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Encoding instructions:
#-*-Encoding: UTF-8 -*-
From eclipse SDK 3.7.1