PyDocs

Nav

Generic Operating System Services

device_encoding

os

function
  • device_encoding(fd)
Return a string describing the encoding of a terminal's file descriptor.

The file descriptor must be attached to a terminal.
If the device is not a terminal, return None.
Changed in 3.10
  • 3.10: On Unix, the function now implements the Python UTF-8 Mode.
0 Examples
No examples for os/device_encoding.
See Also
No see-alsos for os/device_encoding
0 Notes
No notes for device_encoding