song940/node-escpos

Encoding printer

WilliamHGonzalezD opened this issue · 1 comments

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

I try to print German text.

Texting

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

#136 (comment)

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