Convert unicode to str before saving to config. This should fix unicode

path issues.
This commit is contained in:
Andrew Resch 2008-09-15 19:53:07 +00:00
parent 42ca7b97bd
commit f285f607cd

View File

@ -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):