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

Print in turkish

Open DahlenMarvin opened this issue 4 years ago • 2 comments

Hi,

Model : ODP-444

I can't print char from turkish langage :

Ç Ğ I İ Ö Ş Ü ü ş ö i ı ğ ç Â â î Î Û û

But i have this on my printer :

119080382_389632295549849_6655094548690581692_n

Did i miss something for print this special char ?

TY..

DahlenMarvin avatar Sep 10 '20 12:09 DahlenMarvin

i try to do this :

const options = { encoding: "iso-8859-9"} const printer = new escpos.Printer(device, options)

But i always have the wrong char, i want ı and i get ²

DahlenMarvin avatar Sep 16 '20 14:09 DahlenMarvin

Try with .encode('ibm857') at first line of printing script.

device.open(function(error){ printer .align('ct') .encode('ibm857') .text('The quick brown fox jumps over the lazy dog') .text('Ç Ğ I İ Ö Ş Ü ü ş ö i ı ğ ç Â â î Î Û û') .qrimage('https://github.com/song940/node-escpos', function(err){ this.cut(); this.close(); }); });

marcoss2009 avatar Sep 21 '20 23:09 marcoss2009