More
More
Double-Struck Capital P HTML entity ℙ
ℙ is the HTML entity for Double-Struck Capital P ℙ (U+2119). Copy ℙ, ℙ and the CSS, JavaScript, Python and URL escapes.
- Entity
ℙ- Also written
ℙ- Code point
- U+2119
- Unicode name
- DOUBLE-STRUCK CAPITAL P
- Block
- Letterlike Symbols
- Category
- Uppercase letter (Lu)
- Since
- Unicode 1.1
- Defined in
- HTML5
Codes to copy
| HTML named | ℙWorks in HTML; in XML only & < > " ' are predefined. | |
|---|---|---|
| HTML decimal | ℙWorks in HTML and XML. | |
| HTML hex | ℙWorks in HTML and XML. | |
| CSS | content: "\2119";In a stylesheet, for ::before and ::after. | |
| JavaScript | "\u2119"Also valid in JSON. | |
| Python | "\u2119"Python 3 string literal. | |
| Python by name | "\N{DOUBLE-STRUCK CAPITAL P}"Readable alternative using the Unicode name. | |
| URL | %E2%84%99Percent-encoded UTF-8 bytes, for a path or query value. | |
| UTF-8 bytes | E2 84 993 bytes. | |
| UTF-16 | 21191 code unit, which is what JavaScript length counts. |
When to use it
ℙ writes U+2119 (Double-Struck Capital P), a capital letter from the Unicode Letterlike Symbols block, encoded since Unicode 1.1. These characters exist mostly for compatibility with older character sets; for anything beyond simple cases, <sup>, <sub> or MathML give more control.
The name comes from the HTML5 list (much of it shared with MathML), so it works in every current browser but not in XML or XHTML served as XML, where the numeric reference is the safe choice.
More letterlike symbols, numbers and fractions
℗Sound Recording CopyrightℛScript Capital R№Numero SignℜBlack-Letter Capital RℕDouble-Struck Capital NℝDouble-Struck Capital RℓScript Small L℞Prescription Take
All letterlike symbols, numbers and fractions · Every HTML entity · Encode or decode text
Source: the WHATWG HTML Standard list of named character references and the Unicode Character Database (Unicode 18.0).