π is the Unicode character MUSICAL SYMBOL QUARTER NOTE, code point U+1D15F (decimal 119135) in the Musical Symbols block, added in Unicode 3.1. In HTML write 𝅘𝅥, and in UTF-8 it is the 4 bytes F0 9D 85 9F.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D15F |
| Decimal | 119135 |
| UTF-8 bytes | F0 9D 85 9F |
| UTF-16 (big-endian) | D834 DD5F |
| UTF-32 | 0001D15F |
| HTML decimal | 𝅘𝅥 |
| HTML hex | 𝅘𝅥 |
| CSS | \1D15F |
| JavaScript | \u{1D15F} or \uD834\uDD5F |
| JSON | \uD834\uDD5F |
| Python | \U0001D15F |
| Python by name | \N{MUSICAL SYMBOL QUARTER NOTE} |
| Java, C# | \uD834\uDD5F |
| Rust, Swift | \u{1D15F} |
| Go, C, C++ | \U0001D15F |
| URL (percent-encoded) | %F0%9D%85%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 | MUSICAL SYMBOL QUARTER NOTE |
| Code point | U+1D15F (decimal 119135) |
| 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 |
Decomposition
MUSICAL SYMBOL QUARTER NOTE is canonically equivalent to the sequence below. Normalising text to NFD splits it into these parts; NFC joins them back into U+1D15F. Search and comparison should normalise first, or the two spellings will not match.
Nearby in Musical Symbols
- π U+1D157 Musical Symbol Void Notehead
- π U+1D158 Musical Symbol Notehead Black
- π U+1D159 Musical Symbol Null Notehead
- π U+1D15A Musical Symbol Cluster Notehead White
- π U+1D15B Musical Symbol Cluster Notehead Black
- π U+1D15C Musical Symbol Breve
- π U+1D15D Musical Symbol Whole Note
- π U+1D15E Musical Symbol Half Note
- π U+1D160 Musical Symbol Eighth Note
- π ‘ U+1D161 Musical Symbol Sixteenth Note
- π ’ U+1D162 Musical Symbol Thirty-Second Note
- π £ U+1D163 Musical Symbol Sixty-Fourth Note
- π € U+1D164 Musical Symbol One Hundred Twenty-Eighth Note
- U+1D165 Musical Symbol Combining Stem
- U+1D166 Musical Symbol Combining Sprechgesang Stem
- U+1D167 Musical Symbol Combining Tremolo-1
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+1D15F?
- F0 9D 85 9F (hex), 4 bytes. In a URL it is %F0%9D%85%9F.
- How do I write U+1D15F in JavaScript or Python?
- JavaScript: \u{1D15F} or \uD834\uDD5F. Python: \U0001D15F.
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