Plain English

Sets the character code page for text encoding. Different code pages support different character sets — important for international characters and special symbols.

When to use

When printing labels with international characters (accents, umlauts, CJK) that require a specific code page.

Syntax

CODEPAGE n

Parameters

ParameterDescription
nCode page number (e.g. 437, 850, 1252, UTF-8)

Example

CODEPAGE 1252

Set Windows-1252 code page for Western European characters

Try it in the playground View all TSPL commands