Skip to content

Commit

Permalink
p/printcore: Decode serial as UTF-8
Browse files Browse the repository at this point in the history
Fixes #1058.
  • Loading branch information
rockstorm101 committed May 16, 2020
1 parent caace69 commit 1423eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printrun/printcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1423eb4

Please sign in to comment.