summaryrefslogtreecommitdiffstats
path: root/pyload/utils/JsEngine.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/utils/JsEngine.py')
-rw-r--r--pyload/utils/JsEngine.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyload/utils/JsEngine.py b/pyload/utils/JsEngine.py
index ef5bc9be9..ac3a7a7a9 100644
--- a/pyload/utils/JsEngine.py
+++ b/pyload/utils/JsEngine.py
@@ -214,7 +214,7 @@ class RhinoEngine(AbstractEngine):
def eval(self, script):
script = "print(eval(unescape('%s')))" % quote(script)
args = ["java", "-cp", self.path, "org.mozilla.javascript.tools.shell.Main", "-e", script]
- return self._eval(args).decode("utf8").encode("ISO-8859-1")
+ return self._eval(args).decode("utf-8").encode("ISO-8859-1")
class JscEngine(AbstractEngine):