π is the Unicode character MUSICAL SYMBOL PODATUS, code point U+1D1D4 (decimal 119252) 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 94.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D1D4 |
| Decimal | 119252 |
| UTF-8 bytes | F0 9D 87 94 |
| UTF-16 (big-endian) | D834 DDD4 |
| UTF-32 | 0001D1D4 |
| HTML decimal | 𝇔 |
| HTML hex | 𝇔 |
| CSS | \1D1D4 |
| JavaScript | \u{1D1D4} or \uD834\uDDD4 |
| JSON | \uD834\uDDD4 |
| Python | \U0001D1D4 |
| Python by name | \N{MUSICAL SYMBOL PODATUS} |
| Java, C# | \uD834\uDDD4 |
| Rust, Swift | \u{1D1D4} |
| Go, C, C++ | \U0001D1D4 |
| URL (percent-encoded) | %F0%9D%87%94 |
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 PODATUS |
| Code point | U+1D1D4 (decimal 119252) |
| 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+1D1CC Musical Symbol Tempus Imperfectum Cum Prolatione Imperfecta Diminution-1
- π U+1D1CD Musical Symbol Tempus Imperfectum Cum Prolatione Imperfecta Diminution-2
- π U+1D1CE Musical Symbol Tempus Imperfectum Cum Prolatione Imperfecta Diminution-3
- π U+1D1CF Musical Symbol Croix
- π U+1D1D0 Musical Symbol Gregorian C Clef
- π U+1D1D1 Musical Symbol Gregorian F Clef
- π U+1D1D2 Musical Symbol Square B
- π U+1D1D3 Musical Symbol Virga
- π 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+1D1DA Musical Symbol Porrectus Flexus
- π U+1D1DB Musical Symbol Scandicus Flexus
- π U+1D1DC Musical Symbol Torculus Resupinus
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+1D1D4?
- F0 9D 87 94 (hex), 4 bytes. In a URL it is %F0%9D%87%94.
- How do I write U+1D1D4 in JavaScript or Python?
- JavaScript: \u{1D1D4} or \uD834\uDDD4. Python: \U0001D1D4.
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