使用rmongodb在Windows上的utf8转换问题

时间:2015-12-21 15:47:43

标签: r windows mongodb utf-8 rmongodb

我在使用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)

所以变形刚刚处理得不好。

非常感谢任何帮助!

0 个答案:

没有答案
相关问题