diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-10-13 22:20:15 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-10-13 22:20:15 (GMT) |
commit | ee85a1d3bb8ac76c9bbb756d30b9e2110c5137d3 (patch) | |
tree | d6137f054cdae1c3336d4f410413d37149b985c5 /Misc | |
parent | 90bbaa57f92c48d33a4438f22899847915fb5f56 (diff) | |
download | cpython-ee85a1d3bb8ac76c9bbb756d30b9e2110c5137d3.zip cpython-ee85a1d3bb8ac76c9bbb756d30b9e2110c5137d3.tar.gz cpython-ee85a1d3bb8ac76c9bbb756d30b9e2110c5137d3.tar.bz2 |
put PYTHONIOENCODING in man page
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/python.man | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Misc/python.man b/Misc/python.man index 157d9d7..428ef4d 100644 --- a/Misc/python.man +++ b/Misc/python.man @@ -384,9 +384,18 @@ files). .IP PYTHONINSPECT If this is set to a non-empty string it is equivalent to specifying the \fB\-i\fP option. +.IP PYTHONIOENCODING +If this is set before running the interpreter, it overrides the encoding used +for stdin/stdout/stderr, in the syntax +.IB encodingname ":" errorhandler +The +.IB errorhandler +part is optional and has the same meaning as in str.encode. For stderr, the +.IB errorhandler + part is ignored; the handler will always be \'backslashreplace\'. .IP PYTHONNOUSERSITE -If this is set to a non-empty string it is equivalent to specifying -the \fB\-s\fP option (Don't add the user site directory to sys.path). +If this is set to a non-empty string it is equivalent to specifying the +\fB\-s\fP option (Don't add the user site directory to sys.path). .IP PYTHONUNBUFFERED If this is set to a non-empty string it is equivalent to specifying the \fB\-u\fP option. |