From 16a28ac99af855b6dd03bb9cc8c8951fbfeade59 Mon Sep 17 00:00:00 2001 From: jodth07 Date: Tue, 19 May 2020 07:27:54 -0400 Subject: 5/19 - evergreen | triva - fixed utf-8 bugs for windows --- bot/exts/evergreen/trivia_quiz.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot') diff --git a/bot/exts/evergreen/trivia_quiz.py b/bot/exts/evergreen/trivia_quiz.py index c1a271e8..faac0ee6 100644 --- a/bot/exts/evergreen/trivia_quiz.py +++ b/bot/exts/evergreen/trivia_quiz.py @@ -40,7 +40,7 @@ class TriviaQuiz(commands.Cog): def load_questions() -> dict: """Load the questions from the JSON file.""" p = Path("bot", "resources", "evergreen", "trivia_quiz.json") - with p.open() as json_data: + with p.open(encoding="utf-8") as json_data: questions = json.load(json_data) return questions -- cgit v1.2.3