Authored by RFID.me Last updated Editorial policy

Plain English

Defines an **escape character** that the next `^FD` will use to introduce hex byte sequences. Default is underscore (`_`), but you can supply any single ASCII character as the argument (commonly `\`). Each escape pair (`_NN` or `\NN`) decodes to a single byte — letting you embed control characters (tab `_09`, or a newline byte `_0A`, which does not by itself break a line; use `^FB` for multi-line text), special symbols (`_5E` for `^`, `_7E` for `~`), or non-ASCII bytes that the printer would otherwise treat as syntax.

When to use

Immediately before the `^FD` whose data needs hex escapes. Scope is the next `^FD` only — repeat `^FH` for every field that needs it. Pair with `^CI` for non-ASCII text encoded as hex.

Syntax

^FH_

Parameters

ParameterDescription
esc
Single character used to introduce hex escape sequences (default `_`). A common alternative is `\`.

Example

^XA
^FO50,50^A0N,30,30^FH\^FDPrice \5E 10^FS
^XZ

`^FH\` declares `\` as the escape character for the next `^FD`; `\5E` prints a literal caret.

Try it in the playground View all ZPL commands