From 25b650c935ccd0ac723b06d5f21b353bae5ceca7 Mon Sep 17 00:00:00 2001 From: Christoph Heuel Date: Fri, 26 Jun 2015 02:12:30 +0200 Subject: [PATCH] Hexlify text * The original code did not convert the received text --- escpos/escpos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/escpos/escpos.py b/escpos/escpos.py index 30fc126..bea1543 100644 --- a/escpos/escpos.py +++ b/escpos/escpos.py @@ -145,7 +145,7 @@ class Escpos: mask = 0x80 i = 0 temp = 0 - self._raw(binascii.unhexlify(buf)) + self._raw(binascii.unhexlify(bytes(buf, "ascii"))) def qr(self,text):