summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-22 17:49:35 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-22 17:49:35 +0100
commit056ff14eb0250cb0da4eae4b980e11525589cf65 (patch)
treec62c5f383eaf399c7526a209fc4e1fc0077471d0 /module/PyFile.py
parenttry to fix unrar encoding issues (diff)
downloadpyload-056ff14eb0250cb0da4eae4b980e11525589cf65.tar.xz
encoding fixes
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index d70f852d1..4f8b95124 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -100,6 +100,10 @@ class PyFile(object):
return self._name
def setName(self, name):
+ """ Only set unicode or utf8 strings as name """
+ if type(name) == str:
+ name = name.decode("utf8")
+
self._name = name
name = property(getName, setName)