π is the Unicode character GREEK INSTRUMENTAL NOTATION SYMBOL-4, code point U+1D21F (decimal 119327) in the Ancient Greek Musical Notation block, added in Unicode 4.1. In HTML write 𝈟, and in UTF-8 it is the 4 bytes F0 9D 88 9F.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D21F |
| Decimal | 119327 |
| UTF-8 bytes | F0 9D 88 9F |
| UTF-16 (big-endian) | D834 DE1F |
| UTF-32 | 0001D21F |
| HTML decimal | 𝈟 |
| HTML hex | 𝈟 |
| CSS | \1D21F |
| JavaScript | \u{1D21F} or \uD834\uDE1F |
| JSON | \uD834\uDE1F |
| Python | \U0001D21F |
| Python by name | \N{GREEK INSTRUMENTAL NOTATION SYMBOL-4} |
| Java, C# | \uD834\uDE1F |
| Rust, Swift | \u{1D21F} |
| Go, C, C++ | \U0001D21F |
| URL (percent-encoded) | %F0%9D%88%9F |
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 | GREEK INSTRUMENTAL NOTATION SYMBOL-4 |
| Code point | U+1D21F (decimal 119327) |
| Block | Ancient Greek Musical Notation (U+1D200βU+1D24F) |
| General category | So: Other symbol |
| Script | Greek |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 4.1 |
Nearby in Ancient Greek Musical Notation
- π U+1D217 Greek Vocal Notation Symbol-24
- π U+1D218 Greek Vocal Notation Symbol-50
- π U+1D219 Greek Vocal Notation Symbol-51
- π U+1D21A Greek Vocal Notation Symbol-52
- π U+1D21B Greek Vocal Notation Symbol-53
- π U+1D21C Greek Vocal Notation Symbol-54
- π U+1D21D Greek Instrumental Notation Symbol-1
- π U+1D21E Greek Instrumental Notation Symbol-2
- π U+1D220 Greek Instrumental Notation Symbol-5
- π‘ U+1D221 Greek Instrumental Notation Symbol-7
- π’ U+1D222 Greek Instrumental Notation Symbol-8
- π£ U+1D223 Greek Instrumental Notation Symbol-11
- π€ U+1D224 Greek Instrumental Notation Symbol-12
- π₯ U+1D225 Greek Instrumental Notation Symbol-13
- π¦ U+1D226 Greek Instrumental Notation Symbol-14
- π§ U+1D227 Greek Instrumental Notation Symbol-17
All 70 characters: Ancient Greek Musical Notation.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𝈟 (decimal) or 𝈟 (hex).
- What is the UTF-8 encoding of U+1D21F?
- F0 9D 88 9F (hex), 4 bytes. In a URL it is %F0%9D%88%9F.
- How do I write U+1D21F in JavaScript or Python?
- JavaScript: \u{1D21F} or \uD834\uDE1F. Python: \U0001D21F.
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