TROUBLE IN PRINTING CHINESE CHARACTERS IN ZPL VIA ZEBRA PRINTER

845 views
Skip to first unread message

adityaa.s...@gmail.com

unread,
May 22, 2019, 1:53:53 AM5/22/19
to qz-print
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.

Kyle LaBarge

unread,
May 22, 2019, 7:35:07 AM5/22/19
to adityaa.s...@gmail.com, qz-print
Can you please share with us the exact model printer? Printing Chinese characters using a raw language is highly dependent on the hardware you are using. Some printers require special firmware that is loaded by a reseller to support these characters.

That being said, you can try forcing a code page in the config to see if that resolves your issue.

  • Traditional Chinese: Big5
  • Simplified Chinese: GB2312

var config = qz.configs.create("Printer Name", {encoding: 'GB2312'});



If you don't have a printer capable of printing Chinese characters, you will need to use Pixel printing (PDF, HTML, Image) as a work around.

Regards,

Kyle LaBarge


--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/df348471-0072-4a87-aa0a-1eb42fa9f550%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tres Finocchiaro

unread,
May 22, 2019, 10:35:56 AM5/22/19
to Kyle LaBarge, Aditya Sharma, qz-print

Tres Finocchiaro

unread,
May 30, 2019, 1:20:05 AM5/30/19
to Kyle LaBarge, Aditya Sharma, qz-print
The hardware we have on-hand doesn't support these fonts.  We've ordered some printers to find out more.  Note, the necessary fonts fairly expensive (~$200 USD) and only supported on certain models.

Tres Finocchiaro

unread,
Jun 13, 2019, 11:21:49 AM6/13/19
to Kyle LaBarge, Aditya Sharma, qz-print
The hardware has arrived.  We'll have more soon.

-Tres

Tres Finocchiaro

unread,
Jul 12, 2019, 12:50:17 PM7/12/19
to Kyle LaBarge, Aditya Sharma, qz-print
We've identified and documented these steps here:

Reply all
Reply to author
Forward
0 new messages