diff --git a/buba/BubaCmd.py b/buba/BubaCmd.py index 6b86118..76cd986 100644 --- a/buba/BubaCmd.py +++ b/buba/BubaCmd.py @@ -33,6 +33,7 @@ class BubaCmd: :param align: alignment options, see MIS1TextDisplay.ALIGN_* :return: """ + text = text.encode("CP437", "replace").decode("CP437") # force text to be CP437 compliant if self.display is not None: self.display.simple_text(page, row, col, text, align) self.send({ @@ -59,6 +60,7 @@ class BubaCmd: :param align: alignment options, see MIS1TextDisplay.ALIGN_* :return: """ + text = text.encode("CP437", "replace").decode("CP437") # force text to be CP437 compliant if self.display is not None: self.display.text(page, row, col_start, col_end, text, align) self.send({