I need to intercept data being sent to a ESC/POS printer on Windows and analyze it.
So I wanted to get the data in plain text, so that I can extract and make sense
You can put Epson POS printers in debug mode where they will print out a HEX dump of incoming data. See page 88 of this pdf: http://www.pos.epson.com/epsonexpertTSG/Templates/POS_Developers_Details.aspx?NRMODE=Published&NRORIGINALURL=%2fdevelopers%2ftechresdetails%2ehtm%3fproductpk%3d642&NRNODEGUID=%7b934F5A6D-E01A-40B1-B2B0-648C1EC68047%7d&NRCACHEHINT=NoModifyGuest&productpk=642
To make sense of this, you can get the Epson ESC/POS SDK if you sign up and agree to their terms: https://www.epsonexpert.com/ee/prelogin/registration.htm