π is the Unicode character MUSICAL SYMBOL TEMPUS IMPERFECTUM CUM PROLATIONE PERFECTA, code point U+1D1CA (decimal 119242) 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 8A.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D1CA |
| Decimal | 119242 |
| UTF-8 bytes | F0 9D 87 8A |
| UTF-16 (big-endian) | D834 DDCA |
| UTF-32 | 0001D1CA |
| HTML decimal | 𝇊 |
| HTML hex | 𝇊 |
| CSS | \1D1CA |
| JavaScript | \u{1D1CA} or \uD834\uDDCA |
| JSON | \uD834\uDDCA |
| Python | \U0001D1CA |
| Python by name | \N{MUSICAL SYMBOL TEMPUS IMPERFECTUM CUM PROLATIONE PERFECTA} |
| Java, C# | \uD834\uDDCA |
| Rust, Swift | \u{1D1CA} |
| Go, C, C++ | \U0001D1CA |
| URL (percent-encoded) | %F0%9D%87%8A |
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 TEMPUS IMPERFECTUM CUM PROLATIONE PERFECTA |
| Code point | U+1D1CA (decimal 119242) |
| 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+1D1C2 Musical Symbol Longa Imperfecta Rest
- π U+1D1C3 Musical Symbol Brevis Rest
- π U+1D1C4 Musical Symbol Semibrevis Rest
- π U+1D1C5 Musical Symbol Minima Rest
- π U+1D1C6 Musical Symbol Semiminima Rest
- π U+1D1C7 Musical Symbol Tempus Perfectum Cum Prolatione Perfecta
- π U+1D1C8 Musical Symbol Tempus Perfectum Cum Prolatione Imperfecta
- π U+1D1C9 Musical Symbol Tempus Perfectum Cum Prolatione Perfecta Diminution-1
- π U+1D1CB Musical Symbol Tempus Imperfectum Cum Prolatione Imperfecta
- π 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
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+1D1CA?
- F0 9D 87 8A (hex), 4 bytes. In a URL it is %F0%9D%87%8A.
- How do I write U+1D1CA in JavaScript or Python?
- JavaScript: \u{1D1CA} or \uD834\uDDCA. Python: \U0001D1CA.
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