( is the Unicode character LEFT PARENTHESIS, code point U+0028 (decimal 40) in the Basic Latin block, added in Unicode 1.1. In HTML write (, and in UTF-8 it is the single byte 28.
Codes
| Where | How to write it |
|---|---|
| Code point | U+0028 |
| Decimal | 40 |
| UTF-8 bytes | 28 |
| UTF-16 (big-endian) | 0028 |
| UTF-32 | 00000028 |
| HTML decimal | ( |
| HTML hex | ( |
| HTML named | ( |
| CSS | \28 |
| JavaScript | \u0028 |
| JSON | \u0028 |
| Python | \u0028 |
| Python by name | \N{LEFT PARENTHESIS} |
| Java, C# | \u0028 |
| Rust, Swift | \u{28} |
| Go, C, C++ | \u0028 |
| URL (percent-encoded) | %28 |
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 | LEFT PARENTHESIS |
| Code point | U+0028 (decimal 40) |
| Block | Basic Latin (U+0000–U+007F) |
| General category | Ps: Opening punctuation |
| Script | Common |
| Bidirectional class | ON: Other neutral |
| Mirrored in right-to-left text | Yes |
| First in Unicode version | 1.1 |
Nearby in Basic Latin
- U+0020 Space
- ! U+0021 Exclamation Mark
- " U+0022 Quotation Mark
- # U+0023 Number Sign
- $ U+0024 Dollar Sign
- % U+0025 Percent Sign
- & U+0026 Ampersand
- ' U+0027 Apostrophe
- ) U+0029 Right Parenthesis
- * U+002A Asterisk
- + U+002B Plus Sign
- , U+002C Comma
- - U+002D Hyphen-Minus
- . U+002E Full Stop
- / U+002F Solidus
- 0 U+0030 Digit Zero
All 128 characters: Basic Latin.
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+0028?
- 28 (hex), 1 byte. In a URL it is %28.
- How do I write U+0028 in JavaScript or Python?
- JavaScript: \u0028. Python: \u0028.
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