如何在RStudio中检测非UTF-8编码

时间:2016-12-06 06:43:34

标签: rstudio

我有一个类似

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

我想搜索非UTF-8编码。我怎么能在RStudio中做到这一点?

1 个答案:

答案 0 :(得分:2)

我意识到,答案很简单:只需转到Edit =&gt;查找(Strg + F)并在搜索栏中搜索[^\x00-\x7F] +并启用Regex字段。