All ASCII codes can be represented by a "\" plus a number (typically a 8 binary number). and C in the definition of some letters before the "\" to indicate the common ones can not display ASCII characters, such as \0,\t,\n, etc., is called the escape character, because the subsequent character, is not its original ASCII character meaning. All the escape characters and their corresponding meanings:
Escape character |
Significance |
ASCII code value (decimal) |
\a |
Bell (BEL) |
007 |
\b |
BACKSPACE (BS) to move the current position to the previous column |
008 |
\f |
Page Break (FF), moving the current position to the beginning of the next page |
012 |
\ n |
Line Break (LF), move the current position to the beginning of the next line |
010 |
\ r |
Enter (CR) to move the current position to the beginning of the bank |
013 |
\ t |
Horizontal tab (HT) (jumps to the next tab position) |
009 |
\v |
Vertical tabulation (VT) |
11P |
\\ |
Represents a backslash character ' \ ' |
092 |
\‘ |
Represents a single quotation mark (apostrophe) character |
039 |
\" |
Represents a double-quote character |
034 |
\? |
Represents a question mark |
063 |
/ |
Null character (NULL) |
000 |
\ooo |
Any character represented by a 1 to 3-bit octal number |
Three-bit octal |
\xhh |
Any character represented by 1 to 2 hexadecimal digits |
Two-bit hexadecimal |
Note: Differentiate, Slash: "/" with backslash: "\", not interchangeable here
So when stitching special characters, you can use \ before special characters to add in the implementation of the character stitching
Escape characters for iOS special characters