From 1423eb46eb7ee095d1737c5382090b33c61e4b86 Mon Sep 17 00:00:00 2001 From: Rock Storm Date: Sat, 16 May 2020 16:02:02 +0100 Subject: [PATCH] p/printcore: Decode serial as UTF-8 Fixes #1058. --- printrun/printcore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/printrun/printcore.py b/printrun/printcore.py index 5f0f65bed..f67c83971 100644 --- a/printrun/printcore.py +++ b/printrun/printcore.py @@ -334,7 +334,7 @@ def _readline(self): if line_bytes is PR_EOF: self.logError(_("Can't read from printer (disconnected?). line_bytes is None")) return PR_EOF - line = line_bytes.decode('ascii') + line = line_bytes.decode('utf-8') if len(line) > 1: self.log.append(line)