lsongdev / node-escpos

🖨️ ESC/POS Printer driver for Node.js
https://npmjs.org/escpos
Other
1.38k stars 423 forks source link

printers are printing gibberish #401

Open sharmamangita opened 2 years ago

sharmamangita commented 2 years ago

Discussed in https://github.com/song940/node-escpos/discussions/400

Originally posted by **sharmamangita** August 22, 2022 Hi, I used [escpos](https://github.com/song940/node-escpos) for printing the value for that I am using this link https://www.npmjs.com/package/escpos and my code is for the printer is that const escpos = require('escpos'); //for printing order on epson printer escpos.Network = require('escpos-network'); const device = new escpos.Network(ipaddress, port); var options = { encoding: "EUC-KR"}; const printer = new escpos.Printer(device, options); I want to print the value the in English language but sometimes it shows gibberish and it's not happening in any particular case. gibberish printer randomly. Please check the screenshot also ![185500490-1a56ac5a-b000-4958-87d6-b0591bac5437](https://user-images.githubusercontent.com/15026334/185901137-b8f82879-1c03-409f-95bf-73612cfca430.jpeg)