mirror of
https://github.com/python-escpos/python-escpos
synced 2025-09-13 09:09:58 +00:00
Fix issue with manually setting the encoding.
This commit is contained in:
@@ -217,7 +217,8 @@ class Escpos(object):
|
|||||||
if code.upper() == "AUTO":
|
if code.upper() == "AUTO":
|
||||||
self.magic.force_encoding = False
|
self.magic.force_encoding = False
|
||||||
else:
|
else:
|
||||||
self.magic.encoding = self.magic.codepage_sequence(code)
|
self.magic.codepage_sequence(code)
|
||||||
|
self.magic.encoding = code
|
||||||
self.magic.force_encoding = True
|
self.magic.force_encoding = True
|
||||||
|
|
||||||
def barcode(self, code, bc, height=64, width=3, pos="BELOW", font="A", align_ct=True, function_type="A"):
|
def barcode(self, code, bc, height=64, width=3, pos="BELOW", font="A", align_ct=True, function_type="A"):
|
||||||
|
Reference in New Issue
Block a user