mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
add Chinese support via cp936
This commit is contained in:
@@ -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()
|
||||
|
||||
|
Reference in New Issue
Block a user