The Unicode character ’ (U+2019 right single quotation mark) is used for both a typographic apostrophe and a single right (closing) quotation mark. This is due to the many computer fonts and character sets (such as CP1252) that unified the characters into a single code point, and the difficulty of software distinguishing which character is intended by a user's typing. The straight apostrophe ' (the "ASCII apostrophe", U+0027 ' APOSTROPHE) is even more ambiguous, as it could also be intended as a left or right quotation mark, or a prime symbol.
See also Modifier letter apostrophe General Punctuation (Unicode block)
References
