On this page
  1. sys.getfilesystemencoding
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sys.getfilesystemencoding

Prev: sys.getfilesystemencodeerrors | Up: sys | Next: sys.getprofile
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getfilesystemencoding
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import getfilesystemencoding

Signature & Overview

sys.getfilesystemencoding()

Return the encoding used to convert Unicode filenames to OS filenames.

Usage

import sys

enc = sys.getfilesystemencoding()
assert isinstance(enc, str) and len(enc) > 0

Gotchas

REPL Inspect

from sys import getfilesystemencoding
help(getfilesystemencoding)

Linked from

Related notes