[R] Chinese Garbled

yuanzhi yuanzhi.li at usherbrooke.ca
Sat Dec 14 06:22:01 CET 2013


Hello, I met a problem which needs your help. I reinstalled the R and Rstudio
recently. After that, I found there was a problem that the Chinese character
was garbled in Rstudio sometimes. 

example 1
"richness.csv" is a file containing three columns and the names of the three
columns are "处理水平",“组别”,"物种数"。 But when I read this file with function
"read.csv" and displayed, these Chinese characters are garbled like the
followings:
> x<-read.csv("richness.csv")
> x[1:5,]
  X..理?? X.?? 物种数
1        CK    总     34
2        CK    总     43
3        CK    总     45
4        CK    总     41
5        CK    总     33

example2

Sometimes the prompting message also contains garabled Chinese characters.
For example, when I run "?bargraph.CI"(which is a function in package
"sciplot") before I use the cammand "library(sciplot)", it will appear the
following message with garbled Chinese characters:
> ?bargraph.CI
No documentation for 慴argraph.CI?in specified packages and libraries:
you could try ??bargraph.CI?

So, what can I do to solve the problem. Thank you!
Yuanzhi



--
View this message in context: http://r.789695.n4.nabble.com/Chinese-Garbled-tp4682184.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list