R R language file utf-8 or a Chinese annotation garbled
China=5
China
# 2.????????????????????????????????????????????????????????????????????????????????????? м??????? Beta?????? 2 the result?? Result2???????????????????????
Result2=3
Result2
The solution part summary
Method 1
The Windows version:
In Rstudio console, if you have any # write comments in Chinese. The R document garbled, you can reopen the:
File - reopen with ecoding - utf-8 if or not, you can try to change other formats such as GB18030 format
Method 2:
Another way is to open in a text document, and then copy and paste to r save in the studio