How to print a tilde (~) in Zebra Programming Language (ZPL)

怎甘沉沦 提交于 2019-11-30 20:50:23
Esoteric Screen Name

You can use ~CT or ^CT to change the tilde control character to any other ASCII character, and then you can print tildes normally. However, the new control character won't be printable. This is probably going to be quite a hassle to maintain.

An example changing the control command prefix to +, taken from page 165 of the ZPL II programming guide:

^XA
^CT+
^XZ
+HS

If your string is represented as field data with ^FD, ^FV, or ^SN, you can use ^FH to encode the tilde in the string with its hex value, 7E.

An example, taken from page 192 of the ZPL II programming guide:

^XA
^FO100,100
^AD^FH
^FDTilde _7e used for HEX^FS
^XZ

Output:

Tilde ~ used for HEX

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!