如何在 RStudio 中检测非 UTF-8 编码
How can I detect non UTF-8 encoding in RStudio
我有一个像
这样的脚本
a <- 1
# A very long comment, perhaps copy paste from somewhere containing the word fit.
并且我想搜索非 UTF-8 编码。我如何在 RStudio 中执行此操作?
我意识到,答案真的很简单:只需转到编辑 => 查找 (Strg + F) 并在搜索栏中搜索 [^\x00-\x7F]
+ 并启用 Regex
字段。
我有一个像
这样的脚本a <- 1
# A very long comment, perhaps copy paste from somewhere containing the word fit.
并且我想搜索非 UTF-8 编码。我如何在 RStudio 中执行此操作?
我意识到,答案真的很简单:只需转到编辑 => 查找 (Strg + F) 并在搜索栏中搜索 [^\x00-\x7F]
+ 并启用 Regex
字段。