A string is a sequence of characters. A string is written
by enclosing the characters with a doublequote ("). Some
special characters must be preceded by a backslash, these
include doublequote and backslash. The technique of marking
special characters are called escaping and backslash it self
is called an escape character.
Examples of literal strings:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
In Scheme, strings are sequences of characters. Since you can't talk about strings without talking about characters, you should know that mzScheme versions prior to 299 support the Basic Latin and Latin-1 Supplement, AKA ISO-8859-1. Version 299 and above supports the full Unicode character set, using UTF-8 as the internal representation.
You can specify a literal character with the sequence #\ followed by the character, i.e.
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
Character literals can also be represented by #\u followed by a hex number:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
You can convert between characters and integers using the char->integer and integer->char functions:
500 Can't connect to 127.0.0.1:8778 (connect: Connection refused)
-- GordonWeakliem - 22 Oct 2004