I am using Epson TM T82 thermal receipt printer and qz print to print the receipt.
When I try to print the Chinese characters, odd characters produced.
Below is the configs setting and encoding,
var config = qz.configs.create(printer, {encoding: 'GB18030'});
Am I missing something?
Thank you.
var config = qz.configs.create("Printer Name", {encoding: 'GB2312'}); // *Epson T88 models with correct firmware. Toggles EUC encoding, Simplified Chinese // {encoding: 'GBK'}); // Fuken POS90 ships with GB18030, but 'GBK' is required
--
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.
For more options, visit https://groups.google.com/d/optout.
var config = qz.configs.create(printer, {encoding: 'GB18030'});
var printData = [ '\x1B' + '\x40', //init command - necessary for proper byte interpretation '\x1B' + '\x52' + '\x15', // GB18030 encoding is defined as '15' for equipped printers per https://tinyurl.com/y6pghvc6 '这句话是简体中文', '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A', '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A' + '\x0A', '\x1B' + '\x69' // cut paper ];
If you print to FILE:
and view with GB18030 compatible viewer, is the data correct?
1) Add print to FILE by following the link below:
https://qz.io/wiki/Setting-Up-A-Raw-Printer-in-Windows#for-virtual-printer-file
Yes
Instead of printing to a physical file, print to the virtual FILE: printer you created in step 1.var config = qz.configs.create("Name of File Printer", {encoding: 'GB18030'});
Thanks for your help. I opened the file in Visual Studio Code with GB18030 encoding, it did shown the correct Chinese Character.
I think the printer just needs correct configuration for GB18030. Any idea how can I get these info?
PRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system
PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode
PRINT #1, CHR$(&H34);CHR$(&H41);
PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);
PRINT #1, CHR$(&H1C);”C”;CHR$(0); ← Select JIS code system
PRINT #1, CHR$(&H1C);”&”; ← Specify Kanji mode
PRINT #1, CHR$(&H34);CHR$(&H41);
PRINT #1, CHR$(&H3B);CHR$(&H7A); CHR$(&HA);
var printData = [ '\x1C' + 'C' + '\x00', // Select JIS code system '\x1C' + '&', // Specify Kanji mode '\x34' + '\x41', // Character '\x3B' + '\x7A', + '\x0A' // Character ];
var config = qz.configs.create(printer, {encoding: 'GB18030'});
I have tried, not working for me. I get the same result.
Alright Tres,Just to clarify, for LAN printer, i will need to install the printer driver manually and add it as a network printer correct?Thank you.
"\x1C\x26" // Specify Kanji mode
"\x1C\x2E" // Cancel Kanji mode