From ce0e647e819fce4953552783021dbd15da3ce843 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 16 Dec 2011 10:51:01 +0100 Subject: encoding fix --- module/plugins/Plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index f7587d3f2..4b6396cbc 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -31,7 +31,7 @@ if os.name != "nt": from itertools import islice -from module.utils import save_join, save_path, fs_encode +from module.utils import save_join, save_path, fs_encode, fs_decode def chunks(iterable, size): it = iter(iterable) @@ -489,6 +489,8 @@ class Plugin(Base): except Exception, e: self.log.warning(_("Setting User and Group failed: %s") % str(e)) + # convert back to unicode + location = fs_decode(location) name = save_path(self.pyfile.name) filename = join(location, name) -- cgit v1.2.3