From ea9161507cd9f414c363f11e9add5ba3e691f0c2 Mon Sep 17 00:00:00 2001 From: Allain18 Date: Mon, 2 Sep 2024 11:40:11 +0200 Subject: [PATCH] Add encoding --- apio/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apio/util.py b/apio/util.py index 07ed7a9d..b6e81df7 100644 --- a/apio/util.py +++ b/apio/util.py @@ -67,7 +67,7 @@ def __init__(self, outcallback=None): self.outcallback = outcallback self._fd_read, self._fd_write = os.pipe() - self._pipe_reader = os.fdopen(self._fd_read) + self._pipe_reader = os.fdopen(self._fd_read, encoding="UTF-8") self._buffer = [] self.start()