add Chinese support via cp936
This commit is contained in:
parent
9f7e5861cd
commit
6a4fbc191f
|
@ -206,7 +206,7 @@ class Escpos:
|
|||
def text(self, txt):
|
||||
""" Print alpha-numeric text """
|
||||
if txt:
|
||||
self._raw(txt)
|
||||
self._raw(txt.encode('cp936'))
|
||||
else:
|
||||
raise TextError()
|
||||
|
||||
|
|
Loading…
Reference in New Issue