∪ is the Unicode character UNION, code point U+222A (decimal 8746) in the Mathematical Operators block, added in Unicode 1.1. In HTML write ∪, and in UTF-8 it is the 3 bytes E2 88 AA.
Codes
| Where | How to write it |
|---|---|
| Code point | U+222A |
| Decimal | 8746 |
| UTF-8 bytes | E2 88 AA |
| UTF-16 (big-endian) | 222A |
| UTF-32 | 0000222A |
| HTML decimal | ∪ |
| HTML hex | ∪ |
| HTML named | ∪ |
| CSS | \222A |
| JavaScript | \u222A |
| JSON | \u222A |
| Python | \u222A |
| Python by name | \N{UNION} |
| Java, C# | \u222A |
| Rust, Swift | \u{222A} |
| Go, C, C++ | \u222A |
| URL (percent-encoded) | %E2%88%AA |
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 | UNION |
| Code point | U+222A (decimal 8746) |
| Block | Mathematical Operators (U+2200–U+22FF) |
| General category | Sm: Math symbol |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | No |
| First in Unicode version | 1.1 |
Nearby in Mathematical Operators
- ∢ U+2222 Spherical Angle
- ∣ U+2223 Divides
- ∤ U+2224 Does Not Divide
- ∥ U+2225 Parallel To
- ∦ U+2226 Not Parallel To
- ∧ U+2227 Logical And
- ∨ U+2228 Logical Or
- ∩ U+2229 Intersection
- ∫ U+222B Integral
- ∬ U+222C Double Integral
- ∭ U+222D Triple Integral
- ∮ U+222E Contour Integral
- ∯ U+222F Surface Integral
- ∰ U+2230 Volume Integral
- ∱ U+2231 Clockwise Integral
- ∲ U+2232 Clockwise Contour Integral
All 256 characters: Mathematical Operators.
Official reference
Questions people ask
- What is the HTML code for ∪?
- Use the named entity ∪, or ∪ (decimal) or ∪ (hex).
- What is the UTF-8 encoding of U+222A?
- E2 88 AA (hex), 3 bytes. In a URL it is %E2%88%AA.
- How do I write U+222A in JavaScript or Python?
- JavaScript: \u222A. Python: \u222A.
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