本文介绍了在ZPL中打印带有锐角的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我将下面的ZPL命令发送到Zebra打印机,它将打印AmitiÙ:

If I send the ZPL commands below to a Zebra printer, it prints AmitiÙ:

^XA
^FO50,20
^CI7
^A0N,25,15
^FD
Amitié
^FS
^XZ

  • 请注意,文件编码为ANSI.
  • 请注意使用ZPL命令^CI7(7 =>单字节编码-法国1个字符集).
    • Note that the file encoding is ANSI.
    • Note the use of the ZPL command ^CI7 (7 => Single Byte Encoding - France 1 Character Set).
    • 另一方面,如果我将下面的ZPL命令发送到Zebra打印机,它将打印Amitié(这是我实际上需要得到的):

      On the other hand, if I send the ZPL commands below to a Zebra printer, it prints Amitié (which is what I actually need to get):

      ^XA
      ^FO50,20
      ^CI28
      ^A0N,25,15
      ^FD
      Amitié
      ^FS
      ^XZ
      

      • 请注意,文件编码为UTF-8.
      • 请注意使用ZPL命令^CI28(28 => Unicode(UTF-8编码)-Unicode字符集).
        • Note that the file encoding is UTF-8.
        • Note the use of the ZPL command ^CI28 (28 => Unicode (UTF-8 encoding) - Unicode Character Set).
        • 您知道第一种情况是什么问题吗?

          Do you know what's wrong in the first case?

          感谢您的帮助.

          推荐答案

          使用UTF-8,方法是将^CI28命令放在ZPL模板的顶部,例如

          Use UTF-8 by placing a ^CI28 command at the top of your ZPL template, eg

          ^XA
          ^CI28
          ^CF0,80
          ^FO70,40^FDavión^FS
          ^XZ
          

          这篇关于在ZPL中打印带有锐角的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 06:13