How can I detect non UTF-8 encoding in RStudio

2019-02-25 17:36发布

问题:

I have a script like

a <- 1
# A very long comment, perhaps copy paste from somewhere containing the word fit.

and I want to search for non UTF-8 encoding. How can I do this in RStudio?

回答1:

I realized, the answer is really simple: Just go to Edit => Find (Strg + F) and search for [^\x00-\x7F] + with enabled Regex field in the search bar.



标签: rstudio