I have a code with Persian characters, like ( س ) in it. when I save the file, I get a warning: Not all of the characters could be encoded using ISO8859-1
when I close the file tab and reopen it again, the encodings have changed (turned into question marked). BUT , if I close the Rstudio ( without closing the file tab ), in reopening, characters are fine and unchanged.
saving with other encodings like utf-8 code didn't help.
any idea why this is happening and what should I do?
save with encoding cp1256 and reopen with encoding (same cp1256) solved it
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.