Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32a5e87

Browse files
author
Skip Montanaro
committed
minor wordsmithing
1 parent b4e9986 commit 32a5e87

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/tut/tut.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -307,28 +307,28 @@ \subsection{Source Code Encoding}
307307

308308
It is possible to use encodings different than ASCII in Python source
309309
files. 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
318318
possible 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
321321
on \module{codecs}.
322322

323323
If your editor supports saving files as \code{UTF-8} with an UTF-8
324324
signature (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
327327
that this signature is not understood in older Python releases (2.2
328328
and 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
332332
declaration), characters of most languages in the world can be used
333333
simultaneously in string literals and comments. Using non-ASCII
334334
characters in identifiers is not supported. To display all these

0 commit comments

Comments
 (0)