我似乎无法深究,我想读取一个包含阿拉伯字符的 csv 文件,但它没有正确读取它。
这是我的会话信息
R version 3.2.4 Revised (2016-03-16 r70336)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] dplyr_0.4.3 plyr_1.8.3
loaded via a namespace (and not attached):
[1] magrittr_1.5 R6_2.1.2 assertthat_0.1 parallel_3.2.4 DBI_0.3.1 tools_3.2.4
[7] Rcpp_0.12.4
我试过这个
ar <- read.csv (file.choose(), encoding = "UTF-8")
和这个
ar <- read.csv (file.choose(), encoding = "Windows-1256")
这对我来说不起作用,我也尝试将语言环境设置为阿拉伯语但没有运气
Sys.setlocale("LC_ALL","Arabic")
有什么建议么?