APOSTROPHE vs LEFT SINGLE QUOTATION MARK

'
APOSTROPHE
U+0027
View details →
LEFT SINGLE QUOTATION MARK
U+2018
View details →
VS

Property Comparison

Property ' U+0027 ‘ U+2018
Name APOSTROPHE LEFT SINGLE QUOTATION MARK
Block Basic Latin General Punctuation
Script Zyyy Zyyy
Category Other Punctuation (Po) Initial Punctuation (Pi)
Bidirectional ON ON

Encoding Comparison

Format U+0027 U+2018
unicode U+0027 U+2018
decimal 39 8216
htmldecimal ' ‘
htmlhex ' ‘
css \0027 \2018
javascript \u{27} \u{2018}
python \u0027 \u2018
java \u0027 \u2018
go \u0027 \u2018
ruby \u{27} \u{2018}
rust \u{27} \u{2018}
ccpp \u0027 \u2018
urlencoded %27 %E2%80%98
utf8bytes 27 e2 80 98
utf16bebytes 00 27 20 18
utf32bebytes 00 00 00 27 00 00 20 18
htmlentity ' ‘

How to Distinguish

Both characters use the Zyyy script but are in different blocks: APOSTROPHE in Basic Latin and LEFT SINGLE QUOTATION MARK in General Punctuation.

Tip: Paste the character into a hex editor or use charCodeAt() in JavaScript to check the actual codepoint.

Related Comparisons

' APOSTROPHE details ‘ LEFT SINGLE QUOTATION MARK details All Comparisons