SymbolFYI

Comma vs Hyphen-Minus

,
Comma
002C
View details →
-
Hyphen-Minus
002D
View details →
VS

Property Comparison

Property , 002C - 002D
Name Comma Hyphen-Minus
Category Latin Extended Latin Extended
Block Basic Latin Basic Latin
Script Zyyy Zyyy
General Category Other Punctuation (Po) Dash Punctuation (Pd)
Bidirectional CS ES

Encoding Comparison

Format 002C 002D
Unicode U+002C U+002D
HTML Decimal , -
HTML Hex , -
CSS \002C \002D
JavaScript \u{2C} \u{2D}
Python \u002c \u002d
UTF-8 2c 2d

How to Distinguish

Both Comma and Hyphen-Minus 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.

Related Comparisons

, Comma details - Hyphen-Minus details All Comparisons