Search code examples
printinglabelescapingzebra-printers

How to escape caret symbol in ZPL2


Does anybody know how to escape the caret symbol (^), which ZPL2 / zebra printers recognize as a control character for commands, to print this character as a text onto the zpl2 label?

Maybe I'm blind, but I could not find this info in the official zpl2 programming guide.


Solution

  • Use the Field Hex command. ^FH

    ^XA ^FO100,100 ^AD^FH ^FDCaret _5E^FS ^XZ

    Answer lifted from the ZPL guide page 186:

    https://www.zebra.com/content/dam/zebra/manuals/en-us/software/zpl-zbi2-pm-en.pdf