@@ -307,28 +307,28 @@ \subsection{Source Code Encoding}
307307
308308It is possible to use encodings different than ASCII in Python source
309309files. The best way to do it is to put one more special comment line
310- right after \code {\# !} line making proper encoding declaration :
310+ right after the \code {\# !} line to define the source file encoding :
311311
312312\begin {verbatim }
313313# -*- coding: iso-8859-1 -*-
314314\end {verbatim }
315315
316- With that declaration, all characters in the source file will be
317- treated as belonging to \code {iso-8859-1} encoding , and it will be
316+ With that declaration, all characters in the source file will be treated as
317+ {} \code {iso-8859-1}, and it will be
318318possible to directly write Unicode string literals in the selected
319- encoding. The list of possible encodings can be found in the
319+ encoding. The list of possible encodings can be found in the
320320\citetitle [../lib/lib.html]{Python Library Reference }, in the section
321321on \module {codecs}.
322322
323323If your editor supports saving files as \code {UTF-8} with an UTF-8
324324signature (aka BOM -- Byte Order Mark), you can use that instead of an
325- encoding declaration. IDLE supports such saving if
325+ encoding declaration. IDLE supports this capability if
326326\code {Options/General/Default Source Encoding/UTF-8} is set. Notice
327327that this signature is not understood in older Python releases (2.2
328328and earlier), and also not understood by the operating system for
329329\code {\# !} files.
330330
331- By using UTF-8 (either through the signature, or a an encoding
331+ By using UTF-8 (either through the signature or an encoding
332332declaration), characters of most languages in the world can be used
333333simultaneously in string literals and comments. Using non-ASCII
334334characters in identifiers is not supported. To display all these
0 commit comments