| is the Unicode character VERTICAL LINE, code point U+007C (decimal 124) in the Basic Latin block, added in Unicode 1.1. In HTML write |, and in UTF-8 it is the single byte 7C.
Codes
| Where | How to write it |
|---|---|
| Code point | U+007C |
| Decimal | 124 |
| UTF-8 bytes | 7C |
| UTF-16 (big-endian) | 007C |
| UTF-32 | 0000007C |
| HTML decimal | | |
| HTML hex | | |
| HTML named | | | | |
| CSS | \7C |
| JavaScript | \u007C |
| JSON | \u007C |
| Python | \u007C |
| Python by name | \N{VERTICAL LINE} |
| Java, C# | \u007C |
| Rust, Swift | \u{7C} |
| Go, C, C++ | \u007C |
| URL (percent-encoded) | %7C |
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 | VERTICAL LINE |
| Code point | U+007C (decimal 124) |
| Block | Basic Latin (U+0000–U+007F) |
| 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 Basic Latin
- t U+0074 Latin Small Letter T
- u U+0075 Latin Small Letter U
- v U+0076 Latin Small Letter V
- w U+0077 Latin Small Letter W
- x U+0078 Latin Small Letter X
- y U+0079 Latin Small Letter Y
- z U+007A Latin Small Letter Z
- { U+007B Left Curly Bracket
- } U+007D Right Curly Bracket
- ~ U+007E Tilde
- U+007F Delete
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+007C?
- 7C (hex), 1 byte. In a URL it is %7C.
- How do I write U+007C in JavaScript or Python?
- JavaScript: \u007C. Python: \u007C.
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