Colon vs Digit Zero
VS
Property Comparison
| Property | : 003A | 0 0030 |
|---|---|---|
| Name | Colon | Digit Zero |
| 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 | 003A | 0030 |
|---|---|---|
| Unicode | U+003A | U+0030 |
| HTML Decimal | : | 0 |
| HTML Hex | : | 0 |
| CSS | \003A | \0030 |
| JavaScript | \u{3A} | \u{30} |
| Python | \u003a | \u0030 |
| UTF-8 | 3a | 30 |
How to Distinguish
Both Colon and Digit Zero 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.