Search code examples
rrstudio

R studio: When loading a package, strange characters appear in the console


Just like what is shown in the picture, the hook sign appears in strange Chinese character

enter image description here

I changed default text encoding to 'UTF-8', which is in 'saving', the 'code' section in 'global options' settings. But it does not help.


Solution

  • This is a known issue, apparently due to the cli package that tidyverse uses for its startup text, for which a fix is planned (tidyverse issue thread; cli issue thread). In the meantime, per Gábor Csárdi,

    A workaround is to set options(cli.unicode = FALSE).