'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 1:[1]

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).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 zephryl