
String Syntax: Basic Rules and Encoded Bytes
Appendix F. String Syntax
F.1. Basic Rules and Encoded Bytes
A string can consist of both character strings and other ele- ments.
Character strings consist of printable characters, all of which are treated as
If you write your strings in HP PCL or similar printer control lan- guage, you will need to use other elements written directly in hex or decimal notation. By “other elements” is meant charac- ters outside of the permissible range for inclusion in character strings. In order to enter these characters, you must type in the decimal or hexadecimal values directly.
•Decimal numbers are written without any special indicators, e.g. write 65 as 65. The allowable decimal range is 0 - 255.
•Hexadecimal numbers must be preceded by a slash, e.g. /1B. The allowable hexadecimal range is /00
The characters you type in are not all encoded in the flash memory. For example, assume that you have some reason to represent the letter B in hexadecimal, you would type in the string /42.This encodes to B and fills only 1 Byte of flash space; in other words it only fills 1 Encoded Byte.
When you mix elements in a given string entry, you must sepa- rate them with commas. The string "A",/42,"C" encodes to ABC and fills 3 Encoded Bytes.
If an element separator within the command sequence is ille- gal, the whole string is considered invalid and ignored. The next section gives examples of valid and invalid strings.
Intermate100 and Intermate101 Print Server Administration Manual | 239 |