From ac5b9fd4e5b215bab4805242ad5112a6a1dc5386 Mon Sep 17 00:00:00 2001 From: InfinityPacer <160988576+InfinityPacer@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:42:11 +0800 Subject: [PATCH] fix(rclone): specify UTF-8 encoding when save config --- app/modules/filemanager/storages/rclone.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filemanager/storages/rclone.py b/app/modules/filemanager/storages/rclone.py index 4de27cf8..1f62c19e 100644 --- a/app/modules/filemanager/storages/rclone.py +++ b/app/modules/filemanager/storages/rclone.py @@ -39,7 +39,7 @@ class Rclone(StorageBase): path = Path(filepath) if not path.parent.exists(): path.parent.mkdir(parents=True) - path.write_text(conf.get('content')) + path.write_text(conf.get('content'), encoding='utf-8') @staticmethod def __get_hidden_shell():