Space is a graphic character. It has a visual representation consisting of the absence of a graphic symbol. It causes the active position to be advanced by one character position. In some applications, Space can be considered a lowest-level "word separator" to be used with the adjacent separator characters.
These are the code points for space in various character sets
Character Sets | Decimal | Hex |
---|---|---|
ASCII | 32 | 20 |
The character for space is mapped in Unicode as U+0020
Unicode | U+0020 | |
---|---|---|
Unicode Decimal | 32 | |
Unicode Escape | \u0020 | |
UTF-8 (hex) | 0xE2 0x90 0xA0 | |
UTF-8 (binary) | 111000101001000010100000 | |
UTF-8 (binary) | ||
111000101001000010100000 | ||
UTF-16 | 0x0020 | |
UTF-32 | 0x00000020 |
The following HTML entities can be used to represent the space in HTML
HTML Number | |
---|---|
HTML Hex |
Encoding non-standard letters and characters into values that can be displayed e.g. in browsers
URL Escape Code | %20 |
---|---|
Quoted-printable | =20 |
C, C++, and Java | "\u0020" |
---|---|
CSS Code | \0020 |
JavaScript | "\u0020" |
Perl | \x |
Python 2 | u"\u0020" |
Python 3 | \u0020 |
Ruby | \u |