Print simplified chinese

735 views
Skip to first unread message

steph...@gmail.com

unread,
Aug 8, 2016, 4:49:40 AM8/8/16
to qz-print
Dear

I am using EPSON T82II printer and qz print, when I try to print simplified chinese, odd character came out, any things else I can do for raw printing

version of qz = 2.0

Tres Finocchiaro

unread,
Aug 8, 2016, 11:16:22 AM8/8/16
to steph...@gmail.com, qz-print
The T82II supports 18 international characters sets, usually selected using the ESC t command.
  • ESC t - Select character code table
In addition, there are several commands supported on the TM printers line in regards to the Kanji characters:
  • FS ! - Select print mode(s) for Kanji characters
  • FS & - Select Kanji character mode
  • FS 2 - Define user-defined Kanji characters
From research, Traditional Chinese is generally referred to as "cp938", "cp948", "Big5" or "cp950".  I cannot find a reference to any of these specifically in the programming guide, so I would recommend doing the following:
  • Attempt to locate an ESCP/POS programming guide specific to your printer.  Epson support site should offer this.
  • If you cannot locate the proper ESC t command sequence, contact Epson support, they will offer the proper commands.
In the mean time, if you provide some sample text, we will attempt to print it on our Epson, which is a slightly different model.

Best regards,

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

steph...@gmail.com

unread,
Aug 8, 2016, 10:12:29 PM8/8/16
to qz-print, steph...@gmail.com
Tres Finocchiaro於 2016年8月8日星期一 UTC+8下午11時16分22秒寫道:
> The T82II supports 18 international characters sets, usually selected using the ESC t command.
>
> ESC t - Select character code table
>
> In addition, there are several commands supported on the TM printers line in regards to the Kanji characters:FS ! - Select print mode(s) for Kanji characters
> FS & - Select Kanji character mode
> FS 2 - Define user-defined Kanji characters
> From research, Traditional Chinese is generally referred to as "cp938", "cp948", "Big5" or "cp950".  I cannot find a reference to any of these specifically in the programming guide, so I would recommend doing the following:
> Attempt to locate an ESCP/POS programming guide specific to your printer.  Epson support site should offer this.If you cannot locate the proper ESC t command sequence, contact Epson support, they will offer the proper commands.
> In the mean time, if you provide some sample text, we will attempt to print it on our Epson, which is a slightly different model.
>
> Best regards,
>
>
>
>
> - Tres.Fin...@gmail.com
>
>
> On Mon, Aug 8, 2016 at 4:49 AM, <steph...@gmail.com> wrote:
> Dear
>
>
>
> I am using EPSON T82II printer and qz print, when I try to print simplified chinese, odd character came out, any things else I can do for raw printing
>
>
>
> version of qz = 2.0
>
>
>
> --
>
> 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.

Not working with my following command
var printData2 = ['\x1B' + '\x40', // init
'\x1B' + '\x74' + '\x02', //Esc t
'123456789','\n',
'123456789','\n',
'123456789','\n',
'123456789','\n',
'打印简体字','\n',
'选择国际字符集','\n',];

Tres Finocchiaro

unread,
Aug 8, 2016, 11:00:37 PM8/8/16
to Stephen Li, qz-print
Please contact Epson to confirm this printer model supports Chinese Traditional.

According to programming guide, syntax for ESCP/2 is a multi-step process.
  1. Configure an alternate character set using ESC t.  Assinging to character table 0 but would clobber the default settings.  1 would probably be better.

    '\x1B' + 't' + '\x01', // There are 3 character tables in ESCP2.  Switch from 0 to 1.

  2. Assign alternate character table using ESC ( t
    '\x1B' + '(' + 't' + '\x03' + '\x00' + // these values (3, 0) are unexplained in programmer manual
    '\x01' + // the 1 code table set in previous command
    '\x02' '\x00', // an alternate code page from the manual

  3. Append characters
    '印刷\n\n\n\n' // alternate characters

  4. Configure QZ Tray 
    var config = qz.configs.create("Printer Name", { encoding: 'MS932');  // Java's name for PC932
  5. Adapt above example for Chinese.

I cannot find any references anywhere that reference anything about Traditional Chinese support, so you may need a special printer (or Firmware).  I cannot find any reference to EUC_TW, CP938, CP948, Big5 or CP950 in any guides I've found.

Here's the only think I've found on the internet that mentions what you are trying to do:


Best regards,


Reply all
Reply to author
Forward
0 new messages