π is the Unicode character MUSICAL SYMBOL DOUBLE BARLINE, code point U+1D101 (decimal 119041) 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 81.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1D101 |
| Decimal | 119041 |
| UTF-8 bytes | F0 9D 84 81 |
| UTF-16 (big-endian) | D834 DD01 |
| UTF-32 | 0001D101 |
| HTML decimal | 𝄁 |
| HTML hex | 𝄁 |
| CSS | \1D101 |
| JavaScript | \u{1D101} or \uD834\uDD01 |
| JSON | \uD834\uDD01 |
| Python | \U0001D101 |
| Python by name | \N{MUSICAL SYMBOL DOUBLE BARLINE} |
| Java, C# | \uD834\uDD01 |
| Rust, Swift | \u{1D101} |
| Go, C, C++ | \U0001D101 |
| URL (percent-encoded) | %F0%9D%84%81 |
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 DOUBLE BARLINE |
| Code point | U+1D101 (decimal 119041) |
| 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+1D100 Musical Symbol Single Barline
- π U+1D102 Musical Symbol Final Barline
- π U+1D103 Musical Symbol Reverse Final Barline
- π 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
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+1D101?
- F0 9D 84 81 (hex), 4 bytes. In a URL it is %F0%9D%84%81.
- How do I write U+1D101 in JavaScript or Python?
- JavaScript: \u{1D101} or \uD834\uDD01. Python: \U0001D101.
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