Line Separator vs Middle Dot
VS
Property Comparison
| Property | 2028 | · 00B7 |
|---|---|---|
| Name | Line Separator | Middle Dot |
| Category | Punctuation | Punctuation |
| Block | General Punctuation | Latin-1 Supplement |
| Script | Zyyy | Zyyy |
| General Category | Line Separator (Zl) | Other Punctuation (Po) |
| Bidirectional | WS | ON |
Encoding Comparison
| Format | 2028 | 00B7 |
|---|---|---|
| Unicode | U+2028 | U+00B7 |
| HTML Decimal | 
 | · |
| HTML Hex | 
 | · |
| CSS | \2028 | \00B7 |
| JavaScript | \u{2028} | \u{B7} |
| Python | \u2028 | \u00b7 |
| UTF-8 | e2 80 a8 | c2 b7 |
How to Distinguish
Both Line Separator and Middle Dot are in the Punctuation category but reside in different Unicode blocks. Check the codepoint to tell them apart.
Tip: Paste the character into a hex editor or use
charCodeAt()
in JavaScript to check the actual codepoint.