Data as Character Strings
If you used the single quotes to delimit a string value, you would have something like this:
A string value must be written in one line. It can't span two or more lines, so you can't write a string value like this:
This produces an error. If you want to include a new line in your string value, you can use the escape character \n. There are many characters that can't be represented directly in a string value; for example, the copyright symbol and the new line character. Can you type these characters directly in your string value? No, and that's why most programming languages have the concept of escape characters, which are a special value that has a special meaning when used.
Single Quote Escape Character
Double Quote Escape Character
New Line Escape Character
Tab Escape Character
You can use the form \ddd to include a character with the Latin-1 Encoding using the Octal Base. You can also use the form \xdd to include a character with the Latin-1 Encoding, but this time using the Hexadecimal representation, where dd is the character code. Or you can use the form \xdddd to include a Unicode Character using the Hexadecimal representation, where dddd is the character code.