receipt-print-hq / escpos-tools

Utilities to read ESC/POS print data
MIT License
201 stars 73 forks source link

Encoded characters in decoded output #80

Open thekirankumar opened 8 months ago

thekirankumar commented 8 months ago

@mike42 I'm using your library to decode the ESC/POS printer windows spool file. It works well for most inputs. I came across one binary file which causes output of garbled characters like this. I verified that it contains ESC/POS commands, its just that the text output is garbled.

attached

The windows spool file was generated by a thermal receipt printer while printing a grocery bill at a supermarket.

Here's the zipped binary causing the issue, looking forward for a suggestion to get usable text output.