π is the Unicode character MUSICAL SYMBOL FLAT WITH STROKE, code point U+1D256 (decimal 119382) in the Musical Symbols Supplement block, added in Unicode 18.0. In HTML write 𝉖, and in UTF-8 it is the 4 bytes F0 9D 89 96.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D256 |
| Decimal | 119382 |
| UTF-8 bytes | F0 9D 89 96 |
| UTF-16 (big-endian) | D834 DE56 |
| UTF-32 | 0001D256 |
| HTML decimal | 𝉖 |
| HTML hex | 𝉖 |
| CSS | \1D256 |
| JavaScript | \u{1D256} or \uD834\uDE56 |
| JSON | \uD834\uDE56 |
| Python | \U0001D256 |
| Python by name | \N{MUSICAL SYMBOL FLAT WITH STROKE} |
| Java, C# | \uD834\uDE56 |
| Rust, Swift | \u{1D256} |
| Go, C, C++ | \U0001D256 |
| URL (percent-encoded) | %F0%9D%89%96 |
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 FLAT WITH STROKE |
| Code point | U+1D256 (decimal 119382) |
| Block | Musical Symbols Supplement (U+1D250βU+1D28F) |
| General category | So: Other symbol |
| Script | Common |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 18.0 |
Nearby in Musical Symbols Supplement
- U+1D250 Musical Symbol Combining Flag-6
- U+1D251 Musical Symbol Combining Flag-7
- U+1D252 Musical Symbol Combining Flag-8
- π U+1D253 Musical Symbol Two Hundred Fifty-Sixth Rest
- π U+1D254 Musical Symbol Five Hundred Twelfth Rest
- π U+1D255 Musical Symbol One Thousand Twenty-Fourth Rest
- π U+1D257 Musical Symbol Flat With Double Stroke
- π U+1D258 Musical Symbol Flat With Double Stem
- π U+1D259 Musical Symbol Half Sharp With Stroke
- π U+1D25A Musical Symbol Sharp With Stroke
- U+1D25B Musical Symbol Combining Tremolo-4
- U+1D25C Musical Symbol Combining Tremolo-5
- π U+1D25D Musical Symbol Fingered Tremolo-4
- π U+1D25E Musical Symbol Fingered Tremolo-5
All 50 characters: Musical Symbols Supplement.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𝉖 (decimal) or 𝉖 (hex).
- What is the UTF-8 encoding of U+1D256?
- F0 9D 89 96 (hex), 4 bytes. In a URL it is %F0%9D%89%96.
- How do I write U+1D256 in JavaScript or Python?
- JavaScript: \u{1D256} or \uD834\uDE56. Python: \U0001D256.
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