Fix files not being opened with utf-8 encoding

This commit is contained in:
csd4ni3l
2025-05-24 17:34:13 +02:00
parent 0b70696194
commit 31bcf82534
6 changed files with 11 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ class Main(arcade.gui.UIView):
super().__init__()
self.pypresence_client = pypresence_client
with open("settings.json", "r") as file:
with open("settings.json", "r", encoding="utf-8") as file:
self.settings_dict = json.load(file)
if self.settings_dict.get('discord_rpc', True):