From f285f607cdf466f3029ba199d13c885efdf57005 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 15 Sep 2008 19:53:07 +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 ed0c9a75f..0cabbdc7a 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -518,6 +518,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):