π is the Unicode character MUSICAL SYMBOL SUBITO, code point U+1D18D (decimal 119181) in the Musical Symbols block, added in Unicode 3.1. In HTML write 𝆍, and in UTF-8 it is the 4 bytes F0 9D 86 8D.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D18D |
| Decimal | 119181 |
| UTF-8 bytes | F0 9D 86 8D |
| UTF-16 (big-endian) | D834 DD8D |
| UTF-32 | 0001D18D |
| HTML decimal | 𝆍 |
| HTML hex | 𝆍 |
| CSS | \1D18D |
| JavaScript | \u{1D18D} or \uD834\uDD8D |
| JSON | \uD834\uDD8D |
| Python | \U0001D18D |
| Python by name | \N{MUSICAL SYMBOL SUBITO} |
| Java, C# | \uD834\uDD8D |
| Rust, Swift | \u{1D18D} |
| Go, C, C++ | \U0001D18D |
| URL (percent-encoded) | %F0%9D%86%8D |
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 SUBITO |
| Code point | U+1D18D (decimal 119181) |
| 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+1D185 Musical Symbol Combining Doit
- U+1D186 Musical Symbol Combining Rip
- U+1D187 Musical Symbol Combining Flip
- U+1D188 Musical Symbol Combining Smear
- U+1D189 Musical Symbol Combining Bend
- U+1D18A Musical Symbol Combining Double Tongue
- U+1D18B Musical Symbol Combining Triple Tongue
- π U+1D18C Musical Symbol Rinforzando
- π U+1D18E Musical Symbol Z
- π U+1D18F Musical Symbol Piano
- π U+1D190 Musical Symbol Mezzo
- π U+1D191 Musical Symbol Forte
- π U+1D192 Musical Symbol Crescendo
- π U+1D193 Musical Symbol Decrescendo
- π U+1D194 Musical Symbol Grace Note Slash
- π U+1D195 Musical Symbol Grace Note No Slash
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+1D18D?
- F0 9D 86 8D (hex), 4 bytes. In a URL it is %F0%9D%86%8D.
- How do I write U+1D18D in JavaScript or Python?
- JavaScript: \u{1D18D} or \uD834\uDD8D. Python: \U0001D18D.
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