aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jodth07 <[email protected]>2020-05-19 07:27:54 -0400
committerGravatar jodth07 <[email protected]>2020-05-19 07:27:54 -0400
commit16a28ac99af855b6dd03bb9cc8c8951fbfeade59 (patch)
treea1d6dc56a2fc4253c86c126d676e5f4d21949a0f
parentMerge pull request #400 from Numerlor/issue-command-dev-contrib (diff)
5/19 - evergreen | triva - fixed utf-8 bugs for windows
-rw-r--r--bot/exts/evergreen/trivia_quiz.py2
1 files changed, 1 insertions, 1 deletions
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