Writing folder names to config file using UTF-8.

json.dumps is allowed to produce unicode and then the string is encoded to UTF-8, so
that ConfigParser can write it to file.
This commit is contained in:
Timo Kankare
2016-10-11 22:21:54 +03:00
parent 08e356ac68
commit 601b6b0ea7

View File

@@ -41,7 +41,7 @@ def _str_to_folders(folders_str):
def _folders_to_str(folders):
return json.dumps(folders)
return json.dumps(folders, ensure_ascii=False).encode('utf-8')
def _str_to_bool(string):