π is the Unicode character NEWA PLACEHOLDER MARK, code point U+1145B (decimal 70747) in the Newa block, added in Unicode 9.0. In HTML write 𑑛, and in UTF-8 it is the 4 bytes F0 91 91 9B.
Codes
| Where | How to write it |
|---|---|
| Code point | U+1145B |
| Decimal | 70747 |
| UTF-8 bytes | F0 91 91 9B |
| UTF-16 (big-endian) | D805 DC5B |
| UTF-32 | 0001145B |
| HTML decimal | 𑑛 |
| HTML hex | 𑑛 |
| CSS | \1145B |
| JavaScript | \u{1145B} or \uD805\uDC5B |
| JSON | \uD805\uDC5B |
| Python | \U0001145B |
| Python by name | \N{NEWA PLACEHOLDER MARK} |
| Java, C# | \uD805\uDC5B |
| Rust, Swift | \u{1145B} |
| Go, C, C++ | \U0001145B |
| URL (percent-encoded) | %F0%91%91%9B |
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 | NEWA PLACEHOLDER MARK |
| Code point | U+1145B (decimal 70747) |
| Block | Newa (U+11400βU+1147F) |
| General category | Po: Other punctuation |
| Script | Newa |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 9.0 |
Nearby in Newa
- π U+11453 Newa Digit Three
- π U+11454 Newa Digit Four
- π U+11455 Newa Digit Five
- π U+11456 Newa Digit Six
- π U+11457 Newa Digit Seven
- π U+11458 Newa Digit Eight
- π U+11459 Newa Digit Nine
- π U+1145A Newa Double Comma
- π U+1145D Newa Insertion Sign
- U+1145E Newa Sandhi Mark
- π U+1145F Newa Letter Vedic Anusvara
- π U+11460 Newa Sign Jihvamuliya
- π‘ U+11461 Newa Sign Upadhmaniya
All 97 characters: Newa.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑑛 (decimal) or 𑑛 (hex).
- What is the UTF-8 encoding of U+1145B?
- F0 91 91 9B (hex), 4 bytes. In a URL it is %F0%91%91%9B.
- How do I write U+1145B in JavaScript or Python?
- JavaScript: \u{1145B} or \uD805\uDC5B. Python: \U0001145B.
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