From 4427ae94afb63856f411ce91ab9d039ea961acf3 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Thu, 24 Oct 2024 12:26:01 +0200 Subject: [PATCH] fix: make sure all output is utf-8 encoded (#587) Signed-off-by: Dominik Willner --- kiauh.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kiauh.py b/kiauh.py index ff930a4..85e041c 100644 --- a/kiauh.py +++ b/kiauh.py @@ -9,7 +9,13 @@ # This file may be distributed under the terms of the GNU GPLv3 license # # ======================================================================= # +import io +import sys + from kiauh.main import main +# ensure that all output is utf-8 encoded +sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8") + if __name__ == "__main__": main()