^FH — Hex Indicator for Special Characters

ZPL course · ZPL FAQ

Command reference: Labelary ZPL introduction.

Below, commands are bold, parameters are colored, field data stays plain.

^FH — Hex Indicator for Special Characters

Goal

Encode special characters with ^FH.

Description

^FH declares the escape character (underscore by default), so _25 prints a literal % and other hex codes reach characters ^FD cannot carry. (ZPL has no conditional commands — and no ^IF.)

Example

^XA
^FH_
^FO20,20^A0N,30,30^FD100_25 OFF^FS
^XZ

Rendered ^FH label

Result

_25 expands to %: the label reads “100% OFF”.

Article author: Arthur Isaev