Wednesday, September 12, 2012

How to set R's environment to support Chinese?


Open terminal, type in "defaults write org.R-project.R force.LANG en_US.UTF-8".


====
obsolete method:
Use this command for Traditional Chinese:
Sys.setlocale(locale = "Chinese (Traditional)")

And this for Simplified Chinese
Sys.setlocale(locale = "Chinese")

No comments:

Post a Comment