From 90053270d51ae219fa1bebc7791a5745648d439f Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 15 Sep 2008 19:50:49 +0000 Subject: [PATCH] Convert unicode to str before saving to config. This should fix unicode path issues. --- deluge/core/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 363aee8e1..a6b6a06b2 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -516,6 +516,8 @@ class Core( config = deluge.common.pythonize(config) # Load all the values into the configuration for key in config.keys(): + if isinstance(config[key], unicode) or isinstance(config[key], str): + config[key] = config[key].encode("utf8") self.config[key] = config[key] def export_get_listen_port(self):