Digit Two vs Left Square Bracket
VS
Property Comparison
| Property | 2 0032 | [ 005B |
|---|---|---|
| Name | Digit Two | Left Square Bracket |
| Category | Latin Extended | Latin Extended |
| Block | Basic Latin | Basic Latin |
| Script | Zyyy | Zyyy |
| General Category | Decimal Number (Nd) | Open Punctuation (Ps) |
| Bidirectional | EN | ON |
Encoding Comparison
| Format | 0032 | 005B |
|---|---|---|
| Unicode | U+0032 | U+005B |
| HTML Decimal | 2 | [ |
| HTML Hex | 2 | [ |
| CSS | \0032 | \005B |
| JavaScript | \u{32} | \u{5B} |
| Python | \u0032 | \u005b |
| UTF-8 | 32 | 5b |
How to Distinguish
Both Digit Two and Left Square Bracket 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.