To insert characters that are illegal in a string, use an escape character. An escape character is a backslash \ followed by the character you want to insert. A set of \ allow double quotes into your code. An octal value is a value from a number system which has its base as 'eight'.