fix(rclone): specify UTF-8 encoding when save config

This commit is contained in:
InfinityPacer
2024-11-15 17:42:11 +08:00
parent 42dc539df6
commit ac5b9fd4e5

View File

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