π· is the Unicode character MUSICAL SYMBOL DIGIT TWO WITH STROKE, code point U+1D1F7 (decimal 119287) in the Musical Symbols block, added in Unicode 18.0. In HTML write 𝇷, and in UTF-8 it is the 4 bytes F0 9D 87 B7.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D1F7 |
| Decimal | 119287 |
| UTF-8 bytes | F0 9D 87 B7 |
| UTF-16 (big-endian) | D834 DDF7 |
| UTF-32 | 0001D1F7 |
| HTML decimal | 𝇷 |
| HTML hex | 𝇷 |
| CSS | \1D1F7 |
| JavaScript | \u{1D1F7} or \uD834\uDDF7 |
| JSON | \uD834\uDDF7 |
| Python | \U0001D1F7 |
| Python by name | \N{MUSICAL SYMBOL DIGIT TWO WITH STROKE} |
| Java, C# | \uD834\uDDF7 |
| Rust, Swift | \u{1D1F7} |
| Go, C, C++ | \U0001D1F7 |
| URL (percent-encoded) | %F0%9D%87%B7 |
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 DIGIT TWO WITH STROKE |
| Code point | U+1D1F7 (decimal 119287) |
| 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 | 18.0 |
Nearby in Musical Symbols
- π― U+1D1EF Musical Symbol Half Sharp Up
- π° U+1D1F0 Musical Symbol Half Sharp Down
- π± U+1D1F1 Musical Symbol One And A Half Sharp Up
- π² U+1D1F2 Musical Symbol One And A Half Sharp Down
- π³ U+1D1F3 Musical Symbol Reversed Flat Up
- π΄ U+1D1F4 Musical Symbol Reversed Flat Down
- π΅ U+1D1F5 Musical Symbol Reversed Flat And Flat Up
- πΆ U+1D1F6 Musical Symbol Reversed Flat And Flat Down
- πΈ U+1D1F8 Musical Symbol Digit Four With Stroke
- πΉ U+1D1F9 Musical Symbol Digit Five With Stroke
- πΊ U+1D1FA Musical Symbol Digit Six With Stroke
- π» U+1D1FB Musical Symbol Digit Seven With Stroke
- πΌ U+1D1FC Musical Symbol Digit Nine With Stroke
- π½ U+1D1FD Musical Symbol Digit Five With Low Stroke
- πΎ U+1D1FE Musical Symbol Digit Seven With Low Stroke
- πΏ U+1D1FF Musical Symbol Longa Rest
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+1D1F7?
- F0 9D 87 B7 (hex), 4 bytes. In a URL it is %F0%9D%87%B7.
- How do I write U+1D1F7 in JavaScript or Python?
- JavaScript: \u{1D1F7} or \uD834\uDDF7. Python: \U0001D1F7.
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