Backslash (\) and Cent sign (¢)If you send the following ZPL string to the printer intending for the backslash (\) to print, the resulting label will show a cent sign (¢) instead: ^XA The resulting label will look like this:
The reason this happens is because the printers code page does not follow Code Page 850 entirely. ___________________________________________________________________________________________ ^CI13 In order to print the backslash (\) you need to set the printers code page to Code Page 850. Insert a ^CI13 command into the ZPL format to set the printers character set to Code Page 850 to print the backslash (\). ^XA The resulting label will look like this:
____________________________________________________________________________________________ ^CI13 and ^CI0 If you need to print the backslash (\) in one field and the cent sign (¢) in another field the following ZPL script can be used: ^XA The ^CI13 sets the code page to 850 for the first field to print the backslash (\), and then the ^CI0 sets the code page back to the printers default code page resulting in the cent sign (¢) printing. The resulting label will look like this:
__________________________________________________________________________________________ ^CI13 and using decimal values to enter the characters into the ZPL If you need the backslash (\) and the cent sign (¢) printed in the same field or if you just want to keep the printers code page set to 850 all the time you can do the following. ^XA Where the small x's are shown in the format you will have to key
in the decimal value for the cent sign (¢).
The resulting label will look like this:
___________________________________________________________________________________________ ^FH ^CI13 Yet another way to print the backslash (\) and the cent symbol (¢) is by using the Field Hex (^FH_) ZPL command. The ZPL sample looks like this: ^XA The ^CI13 sets the printer to Code Page 850 _BD = the cent sign (¢) The resulting label will look like this:
|