原因
weka默认的字符集编码是Cp1252(查看weka安装目录中配置文件RunWeka.ini),如果导入的数据中有中文字符,就会显示为乱码。
解决方案
1.打开weka安装目录下的RunWeka.ini文件,找到fileEncoding这一行(我这里是第32行),将Cp1252编码改为需要的字符集编码,中文为cp936(简体中文)
30 # The file encoding; use "utf-8" instead of "Cp1252" to display UTF-8 characters in the
31 # GUI, e.g., the Explorer
32 fileEncoding=cp936
2.重启weka即可
2019年12月29日于长沙