Even if utf-8 is the default for Python, it may not be for the editor.

This commit is contained in:
Georg Brandl 2010-08-29 19:54:09 +00:00
parent cf3be960ad
commit 7c4473de5c
1 changed files with 5 additions and 5 deletions

View File

@ -127,11 +127,11 @@ Code lay-out
Latin-1 encoding (a.k.a. ISO-8859-1). For Python 3.0 and beyond,
UTF-8 is preferred over Latin-1, see PEP 3120.
Files using ASCII (or UTF-8, for Python 3.0) should not have a
coding cookie. Latin-1 (or UTF-8) should only be used when a
comment or docstring needs to mention an author name that requires
Latin-1; otherwise, using \x, \u or \U escapes is the preferred
way to include non-ASCII data in string literals.
Files using ASCII should not have a coding cookie. Latin-1 (or
UTF-8) should only be used when a comment or docstring needs to
mention an author name that requires Latin-1; otherwise, using
\x, \u or \U escapes is the preferred way to include non-ASCII
data in string literals.
For Python 3.0 and beyond, the following policy is prescribed for
the standard library (see PEP 3131): All identifiers in the Python