def decode_from_system(string, can_be_from_java=True):
    if sys.platform == 'cli':
        return string
    if sys.platform.startswith('java') and can_be_from_java:
        # http://bugs.jython.org/issue1592
        from java.lang import String
        string = String(string)
    return unic(string, SYSTEM_ENCODING)
Decodes bytes from system (e.g. cli args or env vars) to Unicode.
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/utils/encoding.py/decode_from_system