π is the Unicode character MUSICAL SYMBOL ORNAMENT STROKE-4, code point U+1D19E (decimal 119198) 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 9E.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D19E |
| Decimal | 119198 |
| UTF-8 bytes | F0 9D 86 9E |
| UTF-16 (big-endian) | D834 DD9E |
| UTF-32 | 0001D19E |
| HTML decimal | 𝆞 |
| HTML hex | 𝆞 |
| CSS | \1D19E |
| JavaScript | \u{1D19E} or \uD834\uDD9E |
| JSON | \uD834\uDD9E |
| Python | \U0001D19E |
| Python by name | \N{MUSICAL SYMBOL ORNAMENT STROKE-4} |
| Java, C# | \uD834\uDD9E |
| Rust, Swift | \u{1D19E} |
| Go, C, C++ | \U0001D19E |
| URL (percent-encoded) | %F0%9D%86%9E |
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 ORNAMENT STROKE-4 |
| Code point | U+1D19E (decimal 119198) |
| 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+1D196 Musical Symbol Tr
- π U+1D197 Musical Symbol Turn
- π U+1D198 Musical Symbol Inverted Turn
- π U+1D199 Musical Symbol Turn Slash
- π U+1D19A Musical Symbol Turn Up
- π U+1D19B Musical Symbol Ornament Stroke-1
- π U+1D19C Musical Symbol Ornament Stroke-2
- π U+1D19D Musical Symbol Ornament Stroke-3
- π U+1D19F Musical Symbol Ornament Stroke-5
- π U+1D1A0 Musical Symbol Ornament Stroke-6
- π‘ U+1D1A1 Musical Symbol Ornament Stroke-7
- π’ U+1D1A2 Musical Symbol Ornament Stroke-8
- π£ U+1D1A3 Musical Symbol Ornament Stroke-9
- π€ U+1D1A4 Musical Symbol Ornament Stroke-10
- π₯ U+1D1A5 Musical Symbol Ornament Stroke-11
- π¦ U+1D1A6 Musical Symbol Hauptstimme
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+1D19E?
- F0 9D 86 9E (hex), 4 bytes. In a URL it is %F0%9D%86%9E.
- How do I write U+1D19E in JavaScript or Python?
- JavaScript: \u{1D19E} or \uD834\uDD9E. Python: \U0001D19E.
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