How can I declare special characters in a string?

Q

How can I declare special characters in a string?

A

Use the string.char() operator and with one or more decimal or hexadecimal values.

Example code:

STX = string.char(0x02)
CR_LF = string.char(13, 10)