Comma vs Digit One
VS
Property Comparison
| Property | , 002C | 1 0031 |
|---|---|---|
| Name | Comma | Digit One |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Other Punctuation (Po) | Decimal Number (Nd) |
| Bidirectional | CS | EN |
Encoding Comparison
| Format | 002C | 0031 |
|---|---|---|
| Unicode | U+002C | U+0031 |
| HTML Decimal | , | 1 |
| HTML Hex | , | 1 |
| CSS | \002C | \0031 |
| JavaScript | \u{2C} | \u{31} |
| Python | \u002c | \u0031 |
| UTF-8 | 2c | 31 |
How to Distinguish
Both Comma and Digit One 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.