π is the Unicode character MUSICAL SYMBOL ONE THOUSAND TWENTY-FOURTH REST, code point U+1D255 (decimal 119381) in the Musical Symbols Supplement block, added in Unicode 18.0. In HTML write 𝉕, and in UTF-8 it is the 4 bytes F0 9D 89 95.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D255 |
| Decimal | 119381 |
| UTF-8 bytes | F0 9D 89 95 |
| UTF-16 (big-endian) | D834 DE55 |
| UTF-32 | 0001D255 |
| HTML decimal | 𝉕 |
| HTML hex | 𝉕 |
| CSS | \1D255 |
| JavaScript | \u{1D255} or \uD834\uDE55 |
| JSON | \uD834\uDE55 |
| Python | \U0001D255 |
| Python by name | \N{MUSICAL SYMBOL ONE THOUSAND TWENTY-FOURTH REST} |
| Java, C# | \uD834\uDE55 |
| Rust, Swift | \u{1D255} |
| Go, C, C++ | \U0001D255 |
| URL (percent-encoded) | %F0%9D%89%95 |
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 ONE THOUSAND TWENTY-FOURTH REST |
| Code point | U+1D255 (decimal 119381) |
| Block | Musical Symbols Supplement (U+1D250βU+1D28F) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 18.0 |
Nearby in Musical Symbols Supplement
- U+1D250 Musical Symbol Combining Flag-6
- U+1D251 Musical Symbol Combining Flag-7
- U+1D252 Musical Symbol Combining Flag-8
- π U+1D253 Musical Symbol Two Hundred Fifty-Sixth Rest
- π U+1D254 Musical Symbol Five Hundred Twelfth Rest
- π U+1D256 Musical Symbol Flat With Stroke
- π U+1D257 Musical Symbol Flat With Double Stroke
- π U+1D258 Musical Symbol Flat With Double Stem
- π U+1D259 Musical Symbol Half Sharp With Stroke
- π U+1D25A Musical Symbol Sharp With Stroke
- U+1D25B Musical Symbol Combining Tremolo-4
- U+1D25C Musical Symbol Combining Tremolo-5
- π U+1D25D Musical Symbol Fingered Tremolo-4
All 50 characters: Musical Symbols Supplement.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𝉕 (decimal) or 𝉕 (hex).
- What is the UTF-8 encoding of U+1D255?
- F0 9D 89 95 (hex), 4 bytes. In a URL it is %F0%9D%89%95.
- How do I write U+1D255 in JavaScript or Python?
- JavaScript: \u{1D255} or \uD834\uDE55. Python: \U0001D255.
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