sys.getfilesystemencodeerrors
Prev: sys.getdlopenflags | Up: sys | Next: sys.getfilesystemencoding
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getfilesystemencodeerrors
Tags: #public #python3 #stdlib #sys
Import
import sys
from sys import getfilesystemencodeerrors
Signature & Overview
sys.getfilesystemencodeerrors()
Return the error mode used Unicode to OS filename conversion.
Usage
import sys
err = sys.getfilesystemencodeerrors()
assert err in ("surrogateescape", "strict", "surrogatepass")
Gotchas
- Pairs with
getfilesystemencoding(): Typically"surrogateescape"on Unix and"surrogatepass"on Windows.
REPL Inspect
from sys import getfilesystemencodeerrors
help(getfilesystemencodeerrors)
Linked from
Related notes
- tuts/python3/stdlib_module/sys/getdlopenflags Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/getfilesystemencoding Linked here; links to this page; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/sys/activate_stack_trampoline Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/addaudithook Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/audit Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/breakpointhook Linked here; shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/call_tracing shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/deactivate_stack_trampoline shared tags: #stdlib, #sys
- tuts/python3/stdlib_module/sys/displayhook shared tags: #stdlib, #sys