π is the Unicode character MUSICAL SYMBOL CODA, code point U+1D10C (decimal 119052) in the Musical Symbols block, added in Unicode 3.1. In HTML write 𝄌, and in UTF-8 it is the 4 bytes F0 9D 84 8C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D10C |
| Decimal | 119052 |
| UTF-8 bytes | F0 9D 84 8C |
| UTF-16 (big-endian) | D834 DD0C |
| UTF-32 | 0001D10C |
| HTML decimal | 𝄌 |
| HTML hex | 𝄌 |
| CSS | \1D10C |
| JavaScript | \u{1D10C} or \uD834\uDD0C |
| JSON | \uD834\uDD0C |
| Python | \U0001D10C |
| Python by name | \N{MUSICAL SYMBOL CODA} |
| Java, C# | \uD834\uDD0C |
| Rust, Swift | \u{1D10C} |
| Go, C, C++ | \U0001D10C |
| URL (percent-encoded) | %F0%9D%84%8C |
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 CODA |
| Code point | U+1D10C (decimal 119052) |
| 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+1D104 Musical Symbol Dashed Barline
- π U+1D105 Musical Symbol Short Barline
- π U+1D106 Musical Symbol Left Repeat Sign
- π U+1D107 Musical Symbol Right Repeat Sign
- π U+1D108 Musical Symbol Repeat Dots
- π U+1D109 Musical Symbol Dal Segno
- π U+1D10A Musical Symbol Da Capo
- π U+1D10B Musical Symbol Segno
- π U+1D10D Musical Symbol Repeated Figure-1
- π U+1D10E Musical Symbol Repeated Figure-2
- π U+1D10F Musical Symbol Repeated Figure-3
- π U+1D110 Musical Symbol Fermata
- π U+1D111 Musical Symbol Fermata Below
- π U+1D112 Musical Symbol Breath Mark
- π U+1D113 Musical Symbol Caesura
- π U+1D114 Musical Symbol Brace
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+1D10C?
- F0 9D 84 8C (hex), 4 bytes. In a URL it is %F0%9D%84%8C.
- How do I write U+1D10C in JavaScript or Python?
- JavaScript: \u{1D10C} or \uD834\uDD0C. Python: \U0001D10C.
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