编码问题 R LSA

Encoding issue R LSA

r 中的 lsa 不支持外语

我的代码

library("lsa") 
Loading required package: SnowballC
trm = textmatrix("s/") 

错误

[lsa] - could not open file s/s.txt due to encoding problems of the file.

或者我做错了什么

产生错误的文件是amazon

的源页面

您可以尝试用 Notepad++ 之类的东西加载文件,然后将其另存为其他编码。还有一些实用程序可以转换它,我在 Git-bash 中使用了一个有时称为 iconv 的实用程序。您必须安装 Git 才能访问它。