MCPcopy Index your code
hub / github.com/pyload/pyload / get_console_encoding

Function get_console_encoding

module/plugins/internal/misc.py:391–402  ·  view source on GitHub ↗
(enc)

Source from the content-addressed store, hash-verified

389 return hasattr(obj, "__iter__")
390
391def get_console_encoding(enc):
392 if os.name == "nt":
393 if enc == "cp65001": #: aka UTF-8
394 enc = "utf8"
395
396 elif enc is None: #: piped
397 enc = "iso-8859-1"
398
399 else:
400 enc = "utf8"
401
402 return enc
403
404
405# Hotfix UnicodeDecodeError: 'ascii' codec can't decode..

Callers 2

decodeFunction · 0.70
encodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected