[Rd] Unicode characters in ISO8859-15 locale

Jeroen Ooms jeroen @end|ng |rom berke|ey@edu
Thu Dec 17 13:28:36 CET 2020


The hunspell package uses the code below to replace curly quotes (aka
fancyquotes) with a regular ascii quotes that are needed for check
spelling:

    chartr("\u2019", "'", input)

As of last week this stopped working on CRAN in the Linux server that
runs in ISO8859-15 locale. From the error message, it seems that R no
longer parses the escaped unique string, which gets turned into
"<U+2019>".

Is this expected?



More information about the R-devel mailing list