From ae7fd34d7b27a1948497f0b7814405f2e4b2394a Mon Sep 17 00:00:00 2001 From: Saif Addin Date: Sun, 17 Mar 2024 10:28:38 +0100 Subject: [PATCH] Add missing encoding setting --- scripts/playbtw_core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/playbtw_core.py b/scripts/playbtw_core.py index 78a3f68..a8c16f0 100644 --- a/scripts/playbtw_core.py +++ b/scripts/playbtw_core.py @@ -5,6 +5,9 @@ import argparse import os +import sys + +sys.stdout.reconfigure(encoding="utf-8") parser = argparse.ArgumentParser(description='Play by the Writing - Oracle for Espanso') parser.add_argument('action', type=str)