PEP 540: The UTF-8 Mode
This commit is contained in:
parent
71cda51fbb
commit
08224bf6bd
|
@ -144,7 +144,7 @@ The POSIX locale enables the locale coercion (PEP 538) and the UTF-8
|
||||||
mode (PEP 540). When the locale coercion is enabled, enabling the UTF-8
|
mode (PEP 540). When the locale coercion is enabled, enabling the UTF-8
|
||||||
mode has no (additional) effect.
|
mode has no (additional) effect.
|
||||||
|
|
||||||
The UTF-8 has the same effect than locale coercion:
|
The UTF-8 Mode has the same effect than locale coercion:
|
||||||
``sys.getfilesystemencoding()`` returns ``'UTF-8'``,
|
``sys.getfilesystemencoding()`` returns ``'UTF-8'``,
|
||||||
``locale.getpreferredencoding()`` returns ``UTF-8``, ``sys.stdin`` and
|
``locale.getpreferredencoding()`` returns ``UTF-8``, ``sys.stdin`` and
|
||||||
``sys.stdout`` error handler set to ``surrogateescape``. These changes
|
``sys.stdout`` error handler set to ``surrogateescape``. These changes
|
||||||
|
|
Loading…
Reference in New Issue