What is this character: â\u0080\u0099 ?
This should be an apostrophe or a single quote.
How can I convert it (using Ruby) to a simple, single quote ' or display it properly in a web page as a single quote?
Thanks
What is this character: â\u0080\u0099 ?
This should be an apostrophe or a single quote.
How can I convert it (using Ruby) to a simple, single quote ' or display it properly in a web page as a single quote?
Thanks
It is a typographically correct apostrophe, more exactly RIGHT SINGLE QUOTATION MARK' (U+2019) (’), after some munging in incorrect character code conversions or interpretations. It seems to be an UTF-8 encoded form of that character (three bytes, 0xE2 0x80 0x99) incorrectly interpreted as ISO-8859-1 encoded data.
iconv -f utf8 -t iso-8859-1 < input, which resulted in actually valid UTF-8 text (I basically performed the inverse of the initial incorrect munge). Just in case anyone else saw this and was trying to repair some text.
Apr 28, 2021 at 0:30