π is the Unicode character BRAHMI DANDA, code point U+11047 (decimal 69703) in the Brahmi block, added in Unicode 6.0. In HTML write 𑁇, and in UTF-8 it is the 4 bytes F0 91 81 87.
Codes
| Where | How to write it |
|---|---|
| Code point | U+11047 |
| Decimal | 69703 |
| UTF-8 bytes | F0 91 81 87 |
| UTF-16 (big-endian) | D804 DC47 |
| UTF-32 | 00011047 |
| HTML decimal | 𑁇 |
| HTML hex | 𑁇 |
| CSS | \11047 |
| JavaScript | \u{11047} or \uD804\uDC47 |
| JSON | \uD804\uDC47 |
| Python | \U00011047 |
| Python by name | \N{BRAHMI DANDA} |
| Java, C# | \uD804\uDC47 |
| Rust, Swift | \u{11047} |
| Go, C, C++ | \U00011047 |
| URL (percent-encoded) | %F0%91%81%87 |
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 | BRAHMI DANDA |
| Code point | U+11047 (decimal 69703) |
| Block | Brahmi (U+11000βU+1107F) |
| General category | Po: Other punctuation |
| Script | Brahmi |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 6.0 |
Nearby in Brahmi
- U+1103F Brahmi Vowel Sign Vocalic Rr
- U+11040 Brahmi Vowel Sign Vocalic L
- U+11041 Brahmi Vowel Sign Vocalic Ll
- U+11042 Brahmi Vowel Sign E
- U+11043 Brahmi Vowel Sign Ai
- U+11044 Brahmi Vowel Sign O
- U+11045 Brahmi Vowel Sign Au
- U+11046 Brahmi Virama
- π U+11048 Brahmi Double Danda
- π U+11049 Brahmi Punctuation Dot
- π U+1104A Brahmi Punctuation Double Dot
- π U+1104B Brahmi Punctuation Line
- π U+1104C Brahmi Punctuation Crescent Bar
- π U+1104D Brahmi Punctuation Lotus
- π U+11052 Brahmi Number One
- π U+11053 Brahmi Number Two
All 115 characters: Brahmi.
Official reference
Questions people ask
- What is the HTML code for π?
- Use 𑁇 (decimal) or 𑁇 (hex).
- What is the UTF-8 encoding of U+11047?
- F0 91 81 87 (hex), 4 bytes. In a URL it is %F0%91%81%87.
- How do I write U+11047 in JavaScript or Python?
- JavaScript: \u{11047} or \uD804\uDC47. Python: \U00011047.
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