Hi,
I am trying to print chinese characters via qztray but am having trouble to do so.. The printer is printing everything else ither than the chinese charactes.
Below is the code that I run in my js:
qz.websocket.connect().then(function(){
var config = qz.configs.create("zebra_printer_name");
zpl_data = ["^XA ^CW1,E:SIMSUN.FNT ^FO20,20^A1,30,30^CI28^FD样品编码:2019050011A1^FS ^FO20,60^A1,30,30^CI28^FD样品名称:白酒^FS ^CI0 ^FO20,100 ^BQ,2,4 ^FDD03048F,LM,N0123456789,B0090样品编码:2019050011A1,B0090样品名称:白酒^FS ^PQ1 ^XZ"]
qz.print(config, zpl_data).catch(function(e) {
console.error("--Printing Error---",e);
}).finally(function(){
qz.websocket.disconnect();
});
The image below shows the label that I am getting.
https://qsnapnet.com/snaps/2m1vef419pl
It contains two labels. The label at the top is when I print via qztray and the label at the bottom is from zebra setup utilities via send file command.
Can you please assist and advice what am I doing wrong?
Many thanks.
Aditya Sharma.