1
0
Fork 0
This repository has been archived on 2022-08-09. You can view files and clone it, but cannot push or open issues or pull requests.
odoo-pos-distribution/iotbox/patches/utf8-to-printer.patch

12 lines
261 B
Diff

--- printer.py.orig 2019-06-30 14:11:38.387716789 +0200
+++ printer.py 2019-06-30 14:12:37.508289596 +0200
@@ -211,6 +211,8 @@
def _raw(self, msg):
+ if type(msg) is str:
+ msg = msg.encode("utf-8")
self.device.send(msg)