diff options
Diffstat (limited to 'pyload/utils/__init__.py')
-rw-r--r-- | pyload/utils/__init__.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/pyload/utils/__init__.py b/pyload/utils/__init__.py index 367aed5be..541dedbd8 100644 --- a/pyload/utils/__init__.py +++ b/pyload/utils/__init__.py @@ -84,10 +84,7 @@ def save_join(*args): if sys.getfilesystemencoding().startswith('ANSI'): def fs_encode(string): - try: - string = string.encode('utf-8') - finally: - return save_path(string) + return save_path(encode(string)) fs_decode = decode #decode utf8 |