0

When I run Rscript d:/s.R, it prompt:

invalid multibyte character in parser at line 1 Execution halted

the contens of s.R is:

paste("到达第","天",sep="")

and the encoding of s.R is UTF-8.

How to solve this issue?

Many thanks.

Minyi Han
  • 807
  • 1
  • 8
  • 15
  • Does this help? https://stackoverflow.com/questions/14363085/invalid-multibyte-string-in-read-csv – Jason Nov 30 '21 at 00:28
  • Thanks, when run paste("到达第","天",sep="") in R environment, it is normal, but in Rscript, it failed. – Minyi Han Nov 30 '21 at 09:55

0 Answers0