return encoded name

This commit is contained in:
Clinton Hall 2020-01-04 21:20:40 +13:00 committed by GitHub
commit 3e0cf1949d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,7 +55,7 @@ def char_replace(name_in):
break break
if encoding and not encoding == core.SYS_ENCODING: if encoding and not encoding == core.SYS_ENCODING:
encoded = True encoded = True
name_enc = name.decode(encoding).encode(core.SYS_ENCODING) name = name.decode(encoding).encode(core.SYS_ENCODING)
return encoded, name return encoded, name