diff --git a/RubyEval.py b/RubyEval.py index 9c4ace6..700a583 100644 --- a/RubyEval.py +++ b/RubyEval.py @@ -47,7 +47,7 @@ def eval_as_ruby(self, script): output += "\n" + error try: - return str(output, 'utf-8') + return str(output) except NameError: return unicode(output ,encoding='utf-8')