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