We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentaa40f92 commit20003f9Copy full SHA for 20003f9
Doc/tutorial/interpreter.rst
@@ -126,14 +126,7 @@ The Interpreter and Its Environment
126
Source Code Encoding
127
--------------------
128
129
-By default, Python source files are treated as encoded in UTF-8. In that
130
-encoding, characters of most languages in the world can be used simultaneously
131
-in string literals, identifiers and comments --- although the standard library
132
-only uses ASCII characters for identifiers, a convention that any portable code
133
-should follow. To display all these characters properly, your editor must
134
-recognize that the file is UTF-8, and it must use a font that supports all the
135
-characters in the file.
136
-
+By default, Python source files are treated as encoded in ASCII.
137
To declare an encoding other than the default one, a special comment line
138
should be added as the *first* line of the file. The syntax is as follows::
139