song940/node-escpos

UTF8 problem

AzeDonLees opened this issue · 2 comments

image
hello everyone, I tried to print a smiley face and Russian letters, nothing comes out. Does anyone have ideas?
i tried also 860, not have result.
Code:
const options = { encoding: "UTF8" };

const printer = new escpos.Printer(device, options);

device.open(function (error) {
printer
.size(0, 0)
.font("a")
.align("ct")
.style("b")
.text("привет андрей ❤️")
.cut()
.close();
});

and ə ö ğ ı ə ç ş ü not work too

Would you like to try this?

const options = { encoding: "cp866" };

Cyrillic encoding code : cp866