Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
A string (<string>) is a series of characters enclosed by either single or double quotes. If a string needs to include the same quote that encloses it, it must be escaped. For example, 'That\'s amazing!' or "Deploy the \"scare quotes\" at once!". If a newline is needed within a string, it is represented as \A, which is the Unicode codepoint for the line feed character. Any Unicode character can be represented using an escaped codepoint reference; thus, a left curly double quotation mark is represented \201C. If a string does contain a linefeed for legibility reasons, it must be escaped and will be removed when processing the string.