node-escpos icon indicating copy to clipboard operation
node-escpos copied to clipboard

Encoding printer

Open WilliamHGonzalezD opened this issue 2 years ago • 1 comments

I have a problem with some characters when printing. For example: ÄËÏÖÜäëïöü

I try to print German text.

Texting

WilliamHGonzalezD avatar Aug 23 '22 20:08 WilliamHGonzalezD

You have to set the character code table of your printer, they added the method to change that in the current repo but changes are not available in npm yet, meanwhile I used this code from @yhauxell it should work for you I think

https://github.com/song940/node-escpos/issues/136#issuecomment-401365359

the linked code would choose windows-1252 in my case (which should also work for you because it contains those characters), but try to look up for your printer's manual to see if yours has the same table

Screenshot 2022-09-07 092354

ferminc avatar Sep 07 '22 12:09 ferminc