From 6a8811dca9b53bef201334dd50e035291356a15b Mon Sep 17 00:00:00 2001 From: Jonathan Hite Date: Fri, 7 Feb 2025 19:31:59 -0500 Subject: [PATCH] forced encoding so server.py would start on pi zero 2 w image --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 444d23d..f551978 100644 --- a/server.py +++ b/server.py @@ -14,6 +14,11 @@ other BBS servers listed in the config.ini file. import logging import time +import sys +import io + +# Reconfigure stdout to use UTF-8 encoding +sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8') from config_init import initialize_config, get_interface, init_cli_parser, merge_config from db_operations import initialize_database