1

我在使用 rmongodb 接收正确的 utf8 字符时遇到问题。

> sessionInfo()
R version 3.2.2 (2015-08-14)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rmongodb_1.8.0

loaded via a namespace (and not attached):
[1] plyr_1.8.3        rsconnect_0.4.1.4 tools_3.2.2       rstudioapi_0.3.1  Rcpp_0.12.1       jsonlite_0.9.17 

使用 mongo shell 我得到:

            "organization" : [
                    {
                            "name" : "Birkhäuser Verlag GmbH",
                    }
            ],

在 RStudio 中:

[1] "WERK Birkhäuser Verlag GmbH"

要获取 R 中的数据,我正在使用:

mongo.find.all(mongo = mdb, ns = colname, limit = 10)

所以元音变音没有得到妥善处理。

非常感谢任何帮助!

4

0 回答 0