Displaying 1 result from an estimated 1 matches for "character_test".
2011 Feb 21
0
How to source() a .R file which was saved using UTF-8 encoding on Windows?
Dear all,
[Note: This was originally posted over at Stack Overflow, but it was
suggested that the problem may be an error in R on Windows, so I have
cross posted over here too. ref: http://goo.gl/pd54D)
The following, when copied and pasted directly into R works fine:
> character_test <- function() print("R??????GNU S????????????????????????????????????...")
> character_test()
[1] "R??????GNU S??????????????,???????,?????????????..."
However, if I make a file called character_test.R containing the EXACT
SAME code, save it in UTF-8 encoding (so as to re...