π is the Unicode character MUSICAL SYMBOL PORRECTUS FLEXUS, code point U+1D1DA (decimal 119258) in the Musical Symbols block, added in Unicode 3.1. In HTML write 𝇚, and in UTF-8 it is the 4 bytes F0 9D 87 9A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D1DA |
| Decimal | 119258 |
| UTF-8 bytes | F0 9D 87 9A |
| UTF-16 (big-endian) | D834 DDDA |
| UTF-32 | 0001D1DA |
| HTML decimal | 𝇚 |
| HTML hex | 𝇚 |
| CSS | \1D1DA |
| JavaScript | \u{1D1DA} or \uD834\uDDDA |
| JSON | \uD834\uDDDA |
| Python | \U0001D1DA |
| Python by name | \N{MUSICAL SYMBOL PORRECTUS FLEXUS} |
| Java, C# | \uD834\uDDDA |
| Rust, Swift | \u{1D1DA} |
| Go, C, C++ | \U0001D1DA |
| URL (percent-encoded) | %F0%9D%87%9A |
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 PORRECTUS FLEXUS |
| Code point | U+1D1DA (decimal 119258) |
| 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+1D1D2 Musical Symbol Square B
- π U+1D1D3 Musical Symbol Virga
- π U+1D1D4 Musical Symbol Podatus
- π U+1D1D5 Musical Symbol Clivis
- π U+1D1D6 Musical Symbol Scandicus
- π U+1D1D7 Musical Symbol Climacus
- π U+1D1D8 Musical Symbol Torculus
- π U+1D1D9 Musical Symbol Porrectus
- π U+1D1DB Musical Symbol Scandicus Flexus
- π U+1D1DC Musical Symbol Torculus Resupinus
- π U+1D1DD Musical Symbol Pes Subpunctis
- π U+1D1DE Musical Symbol Kievan C Clef
- π U+1D1DF Musical Symbol Kievan End Of Piece
- π U+1D1E0 Musical Symbol Kievan Final Note
- π‘ U+1D1E1 Musical Symbol Kievan Recitative Mark
- π’ U+1D1E2 Musical Symbol Kievan Whole Note
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+1D1DA?
- F0 9D 87 9A (hex), 4 bytes. In a URL it is %F0%9D%87%9A.
- How do I write U+1D1DA in JavaScript or Python?
- JavaScript: \u{1D1DA} or \uD834\uDDDA. Python: \U0001D1DA.
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