This is the Unicode character NO-BREAK SPACE, code point U+00A0 (decimal 160) in the Latin-1 Supplement block, added in Unicode 1.1. In HTML write , and in UTF-8 it is the 2 bytes C2 A0.
Codes
| Where | How to write it |
|---|---|
| Code point | U+00A0 |
| Decimal | 160 |
| UTF-8 bytes | C2 A0 |
| UTF-16 (big-endian) | 00A0 |
| UTF-32 | 000000A0 |
| HTML decimal |   |
| HTML hex |   |
| HTML named |   |
| CSS | \A0 |
| JavaScript | \u00A0 |
| JSON | \u00A0 |
| Python | \u00A0 |
| Python by name | \N{NO-BREAK SPACE} |
| Java, C# | \u00A0 |
| Rust, Swift | \u{A0} |
| Go, C, C++ | \u00A0 |
| URL (percent-encoded) | %C2%A0 |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | NO-BREAK SPACE |
| Also known as | NBSP |
| Code point | U+00A0 (decimal 160) |
| Block | Latin-1 Supplement (U+0080–U+00FF) |
| General category | Zs: Space separator |
| Script | Common |
| Bidirectional class | CS: Common number separator |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
NO-BREAK SPACE has a compatibility decomposition (noBreak) to the sequence below. NFKC and NFKD normalisation replace it with that sequence, which can change how text looks, so use them for search, not for storage.
Nearby in Latin-1 Supplement
- U+0098 Start Of String
- U+0099 Single Graphic Character Introducer
- U+009A Single Character Introducer
- U+009B Control Sequence Introducer
- U+009C String Terminator
- U+009D Operating System Command
- U+009E Privacy Message
- U+009F Application Program Command
- ¡ U+00A1 Inverted Exclamation Mark
- ¢ U+00A2 Cent Sign
- £ U+00A3 Pound Sign
- ¤ U+00A4 Currency Sign
- ¥ U+00A5 Yen Sign
- ¦ U+00A6 Broken Bar
- § U+00A7 Section Sign
- ¨ U+00A8 Diaeresis
All 128 characters: Latin-1 Supplement.
Official reference
Questions people ask
- What is the HTML code for NO-BREAK SPACE?
- Use the named entity , or   (decimal) or   (hex).
- What is the UTF-8 encoding of U+00A0?
- C2 A0 (hex), 2 bytes. In a URL it is %C2%A0.
- How do I write U+00A0 in JavaScript or Python?
- JavaScript: \u00A0. Python: \u00A0.
Source
Unicode Character Database 18.0.0 (Unicode License v3); HTML entity names from the WHATWG HTML Standard (CC BY 4.0). The encodings above are computed from the code point and checked against Python's encoders. How the character looks depends on your fonts.
Legal entity
Devansh Yadav
Moradabad, Uttar Pradesh
Governing law: Courts at Moradabad, Uttar Pradesh
Phone: +91 8433475698
Legal: legal@analyzeit.in