[R] A question about encoding

From: ronggui <ronggui.huang_at_gmail.com>
Date: Wed 10 May 2006 - 01:10:19 EST


I use R 2.3.0 under windows.

> Sys.getlocale()

[1] "LC_COLLATE=Chinese_People's Republic of

China.936;LC_CTYPE=Chinese_People's Republic of
China.936;LC_MONETARY=Chinese_People's Republic of
China.936;LC_NUMERIC=C;LC_TIME=Chinese_People's Republic of China.936"

> localeToCharset()

[1] "CP936"

Now I want to use JGR,which uses UTF-8 encoding. So when I use save.image function to save something containg Chinese character with R,and then load into JGR, the Chinese character will not display correctly.Of course,I can use iconv to convert the character making it readable.But is there any better way to this?

Thanks.

--
ٹ
Deparment of Sociology
Fudan University



______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Received on Wed May 10 01:34:07 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 10 May 2006 - 04:09:59 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.