6 is the Unicode character DIGIT SIX, code point U+0036 (decimal 54) in the Basic Latin block, added in Unicode 1.1. In HTML write 6, and in UTF-8 it is the single byte 36.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0036 |
| Decimal | 54 |
| UTF-8 bytes | 36 |
| UTF-16 (big-endian) | 0036 |
| UTF-32 | 00000036 |
| HTML decimal | 6 |
| HTML hex | 6 |
| CSS | \36 |
| JavaScript | \u0036 |
| JSON | \u0036 |
| Python | \u0036 |
| Python by name | \N{DIGIT SIX} |
| Java, C# | \u0036 |
| Rust, Swift | \u{36} |
| Go, C, C++ | \u0036 |
| URL (percent-encoded) | %36 |
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 | DIGIT SIX |
| Code point | U+0036 (decimal 54) |
| Block | Basic Latin (U+0000–U+007F) |
| General category | Nd: Decimal digit |
| Script | Common |
| Bidirectional class | EN: European number |
| Numeric value | 6 |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Basic Latin
- . U+002E Full Stop
- / U+002F Solidus
- 0 U+0030 Digit Zero
- 1 U+0031 Digit One
- 2 U+0032 Digit Two
- 3 U+0033 Digit Three
- 4 U+0034 Digit Four
- 5 U+0035 Digit Five
- 7 U+0037 Digit Seven
- 8 U+0038 Digit Eight
- 9 U+0039 Digit Nine
- : U+003A Colon
- ; U+003B Semicolon
- < U+003C Less-Than Sign
- = U+003D Equals Sign
- > U+003E Greater-Than Sign
All 128 characters: Basic Latin.
Official reference
Questions people ask
- What is the HTML code for 6?
- Use 6 (decimal) or 6 (hex).
- What is the UTF-8 encoding of U+0036?
- 36 (hex), 1 byte. In a URL it is %36.
- How do I write U+0036 in JavaScript or Python?
- JavaScript: \u0036. Python: \u0036.
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