gilbertfl / escpos-netprinter

Emulator of a networked ESC/POS printer
GNU Affero General Public License v3.0
4 stars 1 forks source link

Conversion crash when print includes \xe9 character #2

Open gilbertfl opened 3 months ago

gilbertfl commented 3 months ago

Receipts including the \xe9 character crash on decoding with the following exception:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 187992: invalid continuation byte

Example contents exerpt: b'\r\nMontr\xe9al (Qu\xe9bec)'