Comma vs Vertical Line
VS
Property Comparison
| Property | , 002C | | 007C |
|---|---|---|
| Name | Comma | Vertical Line |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Math Symbol (Sm) |
| Bidirectional | CS | ON |
Encoding Comparison
| Format | 002C | 007C |
|---|---|---|
| Unicode | U+002C | U+007C |
| HTML Decimal | , | | |
| HTML Hex | , | | |
| CSS | \002C | \007C |
| JavaScript | \u{2C} | \u{7C} |
| Python | \u002c | \u007c |
| UTF-8 | 2c | 7c |
How to Distinguish
Both Comma and Vertical Line belong to the Latin Extended category and the Basic Latin block. Compare their codepoints and visual rendering to distinguish them.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.