mirror of
https://github.com/pulb/mailnag.git
synced 2026-05-06 20:26:48 +02:00
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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user