π is the Unicode character MUSICAL SYMBOL THIRTY-SECOND REST, code point U+1D140 (decimal 119104) in the Musical Symbols block, added in Unicode 3.1. In HTML write 𝅀, and in UTF-8 it is the 4 bytes F0 9D 85 80.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D140 |
| Decimal | 119104 |
| UTF-8 bytes | F0 9D 85 80 |
| UTF-16 (big-endian) | D834 DD40 |
| UTF-32 | 0001D140 |
| HTML decimal | 𝅀 |
| HTML hex | 𝅀 |
| CSS | \1D140 |
| JavaScript | \u{1D140} or \uD834\uDD40 |
| JSON | \uD834\uDD40 |
| Python | \U0001D140 |
| Python by name | \N{MUSICAL SYMBOL THIRTY-SECOND REST} |
| Java, C# | \uD834\uDD40 |
| Rust, Swift | \u{1D140} |
| Go, C, C++ | \U0001D140 |
| URL (percent-encoded) | %F0%9D%85%80 |
JavaScript and JSON strings store text as UTF-16, so this character takes two code units (a surrogate pair) and "π ".length is 2. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | MUSICAL SYMBOL THIRTY-SECOND REST |
| Code point | U+1D140 (decimal 119104) |
| Block | Musical Symbols (U+1D100βU+1D1FF) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 3.1 |
Nearby in Musical Symbols
- πΈ U+1D138 Musical Symbol Quindicesima Alta
- πΉ U+1D139 Musical Symbol Quindicesima Bassa
- πΊ U+1D13A Musical Symbol Multi Rest
- π» U+1D13B Musical Symbol Whole Rest
- πΌ U+1D13C Musical Symbol Half Rest
- π½ U+1D13D Musical Symbol Quarter Rest
- πΎ U+1D13E Musical Symbol Eighth Rest
- πΏ U+1D13F Musical Symbol Sixteenth Rest
- π U+1D141 Musical Symbol Sixty-Fourth Rest
- π U+1D142 Musical Symbol One Hundred Twenty-Eighth Rest
- π U+1D143 Musical Symbol X Notehead
- π U+1D144 Musical Symbol Plus Notehead
- π U+1D145 Musical Symbol Circle X Notehead
- π U+1D146 Musical Symbol Square Notehead White
- π U+1D147 Musical Symbol Square Notehead Black
- π U+1D148 Musical Symbol Triangle Notehead Up White
All 256 characters: Musical Symbols.
Official reference
Questions people ask
- What is the HTML code for π ?
- Use 𝅀 (decimal) or 𝅀 (hex).
- What is the UTF-8 encoding of U+1D140?
- F0 9D 85 80 (hex), 4 bytes. In a URL it is %F0%9D%85%80.
- How do I write U+1D140 in JavaScript or Python?
- JavaScript: \u{1D140} or \uD834\uDD40. Python: \U0001D140.
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