code: def _get_encoding():
      
  
      encoding = sys.getfilesystemencoding()
      if encoding is None:
          if is_darwin:
              encoding = "utf-8"
          elif is_win:
              encoding = "mbcs"
          else:
              encoding = "ascii"
      encoding = _normalize_codec(encoding)
      return encoding
docs: The encoding used for paths, argv, environ, stdout and stdin