How to change Sys.setlocale, when you get Error “request to set locale … cannot be honored”

你说的曾经没有我的故事 提交于 2020-01-06 07:54:36

问题


This relates to the problem I'm trying to resolve here: Printing UTF-8 (Russian) characters in R, Rmd, knitr.

I was told that this problem does not exist if native locale was en_US.UTF-8. (My current native locale is English_Canada.1252.)

But I cannot just simply change my English_Canada.1252 to en_US.UTF-8. - When I try I get this error message:

> Sys.setlocale("LC_CTYPE", "en_US.UTF-8")
OS reports request to set locale to "en_US.UTF-8" cannot be honored[1] ""

Any idea how to resolve it?


回答1:


From above comments, this is not possible



来源:https://stackoverflow.com/questions/48343831/how-to-change-sys-setlocale-when-you-get-error-request-to-set-locale-cannot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!