ピ is the Unicode character KATAKANA LETTER PI, code point U+30D4 (decimal 12500) in the Katakana block, added in Unicode 1.1. In HTML write ピ, and in UTF-8 it is the 3 bytes E3 83 94.
Codes
| Where | How to write it |
|---|---|
| Code point | U+30D4 |
| Decimal | 12500 |
| UTF-8 bytes | E3 83 94 |
| UTF-16 (big-endian) | 30D4 |
| UTF-32 | 000030D4 |
| HTML decimal | ピ |
| HTML hex | ピ |
| CSS | \30D4 |
| JavaScript | \u30D4 |
| JSON | \u30D4 |
| Python | \u30D4 |
| Python by name | \N{KATAKANA LETTER PI} |
| Java, C# | \u30D4 |
| Rust, Swift | \u{30D4} |
| Go, C, C++ | \u30D4 |
| URL (percent-encoded) | %E3%83%94 |
JavaScript and JSON strings store text as UTF-16, so this character is one code unit long. Python 3 strings count code points, so its length there is 1.
Properties
| Property | Value |
|---|---|
| Name | KATAKANA LETTER PI |
| Code point | U+30D4 (decimal 12500) |
| Block | Katakana (U+30A0–U+30FF) |
| General category | Lo: Other letter |
| Script | Katakana |
| Bidirectional class | L: Left-to-right |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Decomposition
KATAKANA LETTER PI is canonically equivalent to the sequence below. Normalising text to NFD splits it into these parts; NFC joins them back into U+30D4. Search and comparison should normalise first, or the two spellings will not match.
Nearby in Katakana
- ヌ U+30CC Katakana Letter Nu
- ネ U+30CD Katakana Letter Ne
- ノ U+30CE Katakana Letter No
- ハ U+30CF Katakana Letter Ha
- バ U+30D0 Katakana Letter Ba
- パ U+30D1 Katakana Letter Pa
- ヒ U+30D2 Katakana Letter Hi
- ビ U+30D3 Katakana Letter Bi
- フ U+30D5 Katakana Letter Hu
- ブ U+30D6 Katakana Letter Bu
- プ U+30D7 Katakana Letter Pu
- ヘ U+30D8 Katakana Letter He
- ベ U+30D9 Katakana Letter Be
- ペ U+30DA Katakana Letter Pe
- ホ U+30DB Katakana Letter Ho
- ボ U+30DC Katakana Letter Bo
All 96 characters: Katakana.
Official reference
Questions people ask
- What is the HTML code for ピ?
- Use ピ (decimal) or ピ (hex).
- What is the UTF-8 encoding of U+30D4?
- E3 83 94 (hex), 3 bytes. In a URL it is %E3%83%94.
- How do I write U+30D4 in JavaScript or Python?
- JavaScript: \u30D4. Python: \u30D4.
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