Is there a standard way in R to transliterate ASCII HTML codes to a standard character? For example, '
is an apostrophe, like ' or ' (I typed an apostrophe for the second one and the HTML code for the first). I'd like to change the following text
text = "Met with Mark's boss today to discuss performance"
to be
"Met with Mark's boss today to discuss performance"
I tried using iconv like below but the HTML code is all valid encoding, so nothing changes.
iconv(text, from="ASCII", to="UTF-8//TRANSLIT")
I could get a lookup table and do it that way but thought I'd check if there's an existing method to accomplish this.