π is the Unicode character MUSICAL SYMBOL TRIANGLE NOTEHEAD LEFT BLACK, code point U+1D14B (decimal 119115) 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 8B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D14B |
| Decimal | 119115 |
| UTF-8 bytes | F0 9D 85 8B |
| UTF-16 (big-endian) | D834 DD4B |
| UTF-32 | 0001D14B |
| HTML decimal | 𝅋 |
| HTML hex | 𝅋 |
| CSS | \1D14B |
| JavaScript | \u{1D14B} or \uD834\uDD4B |
| JSON | \uD834\uDD4B |
| Python | \U0001D14B |
| Python by name | \N{MUSICAL SYMBOL TRIANGLE NOTEHEAD LEFT BLACK} |
| Java, C# | \uD834\uDD4B |
| Rust, Swift | \u{1D14B} |
| Go, C, C++ | \U0001D14B |
| URL (percent-encoded) | %F0%9D%85%8B |
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 TRIANGLE NOTEHEAD LEFT BLACK |
| Code point | U+1D14B (decimal 119115) |
| 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+1D143 Musical Symbol X Notehead
- π U+1D144 Musical Symbol Plus Notehead
- π U+1D145 Musical Symbol Circle X Notehead
- π U+1D146 Musical Symbol Square Notehead White
- π U+1D147 Musical Symbol Square Notehead Black
- π U+1D148 Musical Symbol Triangle Notehead Up White
- π U+1D149 Musical Symbol Triangle Notehead Up Black
- π U+1D14A Musical Symbol Triangle Notehead Left White
- π U+1D14C Musical Symbol Triangle Notehead Right White
- π U+1D14D Musical Symbol Triangle Notehead Right Black
- π U+1D14E Musical Symbol Triangle Notehead Down White
- π U+1D14F Musical Symbol Triangle Notehead Down Black
- π U+1D150 Musical Symbol Triangle Notehead Up Right White
- π U+1D151 Musical Symbol Triangle Notehead Up Right Black
- π U+1D152 Musical Symbol Moon Notehead White
- π U+1D153 Musical Symbol Moon Notehead Black
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+1D14B?
- F0 9D 85 8B (hex), 4 bytes. In a URL it is %F0%9D%85%8B.
- How do I write U+1D14B in JavaScript or Python?
- JavaScript: \u{1D14B} or \uD834\uDD4B. Python: \U0001D14B.
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