Cannot print Chinese in Linux RStudio

Hi all,

When i print Chinese characters as below, not show as expected. My is: Linux.
I tried to setlocal: Sys.setlocale(category = "LC_ALL", locale = "zh_CN.utf-8").
But did not work.

Code: print("你好")

Result: \344\275\240\345\245\275

thank you all.

You may need to install and use HanziR package:


Additional information about this package on GitHub can be found here.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.