Return a string describing the encoding of the device associated with fd if it is connected to a terminal; else return None.
os.device_encoding(fd)