Closed ipetrovbg closed 1 year ago
Hello, I was not sure if this had to be a bug report but decided to post it as a bug because the same text worked fine with other ways of printing.
iconv -f UTF-8 -t CP437 print.txt | lp -d <PRINTER> -o raw
I have also checked the issues of this repository and believe that this is not a duplicate.
Current Behavior I'm attaching an image to illustrate what was printed when I used the following configuration options.
USBPrinter.connectPrinter(000000, 000000) .then(() => { const lines = [ "<C>(S21)</C>", "------------------------------------------", "", "Total", "£5.00", "------------------------------------------", ] USBPrinter.printText(lines.join(commands.EOL), { encoding: "UTF8" }) }) .catch(err => { console.log(err) })
Expected Behaviour I would expect to print the pound sign (£) normally
Your Environment
Please, let me know if I'm doing something I'm not suppose to be doing. Thank you!
For anyone stumbling upon the same problem I fixed it with using cp857 encoding.
cp857
Hello, I was not sure if this had to be a bug report but decided to post it as a bug because the same text worked fine with other ways of printing.
I have also checked the issues of this repository and believe that this is not a duplicate.
Current Behavior I'm attaching an image to illustrate what was printed when I used the following configuration options.
Expected Behaviour I would expect to print the pound sign (£) normally
Your Environment
Please, let me know if I'm doing something I'm not suppose to be doing. Thank you!