diff --git a/dislocker.py b/dislocker.py index 353b06a..6ba28f5 100644 --- a/dislocker.py +++ b/dislocker.py @@ -52,12 +52,12 @@ class DL(): } } - with open(self.server_config_path, "w") as w: - json.dump(self.server_config, w, indent=4) + with open(self.server_config_path, "w", encoding="utf-8") as w: + json.dump(self.server_config, w, indent=4, ensure_ascii=False) elif os.path.isfile(self.server_config_path): - with open(self.server_config_path, "r") as r: + with open(self.server_config_path, "r", encoding="utf-8") as r: self.server_config = json.load(r) print("config ファイルを読み込みました。")