From 052018d8b52b1f097dc4e6986376defe279c7848 Mon Sep 17 00:00:00 2001 From: dlavati Date: Mon, 9 Dec 2019 06:14:29 +0100 Subject: [PATCH] Set utf-8 encoding for reading the logo (#54) This appears primarily in Windows CLIs, see #48. Also `termios` is not supported on Windows, however I haven't yet looked into an alternative. --- play.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.py b/play.py index dfef418..211efcd 100644 --- a/play.py +++ b/play.py @@ -75,7 +75,7 @@ def play_aidungeon_2(): story_manager = UnconstrainedStoryManager(generator) print("\n") - with open('opening.txt', 'r') as file: + with open('opening.txt', 'r', encoding='utf-8') as file: starter = file.read() print(starter)