What is this character? â\u0080\u0099

2019-07-13 13:51发布

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

1条回答
做自己的国王
2楼-- · 2019-07-13 14:32

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.

查看更多
登录 后发表回答