def decode_fs_string(string):
    charset = sys.getfilesystemencoding()
    if charset is None:
        charset = locale.getpreferredencoding()
    return string.decode(charset)
Convert string from file system charset to unicode
dataset/ETHPy150Open winpython/winpython/winpython/utils.py/decode_fs_string