mirror of
https://github.com/python-escpos/python-escpos
synced 2025-10-03 09:19:59 +00:00
add Chinese support via cp936
This commit is contained in:
@@ -206,7 +206,7 @@ class Escpos:
|
|||||||
def text(self, txt):
|
def text(self, txt):
|
||||||
""" Print alpha-numeric text """
|
""" Print alpha-numeric text """
|
||||||
if txt:
|
if txt:
|
||||||
self._raw(txt)
|
self._raw(txt.encode('cp936'))
|
||||||
else:
|
else:
|
||||||
raise TextError()
|
raise TextError()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user