Reputation: 688
I am using windows 10 and Rstudio and I didn´t find a way to overcome the following problem. What I already tried:
Sys.setlocale("LC_ALL","English")
or
Sys.setlocale("LC_ALL", "pt_br.utf-8")
This problem does not appear using MacOs of Linux.
The error message is this:
Listening on http://127.0.0.1:5736
Warning in Sys.setlocale("LC_ALL", "pt_br.utf-8") :
OS reports request to set locale to "pt_br.utf-8" cannot be honored
The image above is how the Shiny application runs on this windows machine.
Upvotes: 2
Views: 3228
Reputation: 1339
This is intrinsic to your OS. You must first of all find which locale are locally installed. You may find this other thread useful on this point.
The point is: when perusing the list of installed language locale, you must identify the ones which are compatible with Portuguese characters, such as:
locale -a
>pt_BR
>pt_BR.ISO8859-1
>pt_BR.UTF-8
>pt_PT
>pt_PT.ISO8859-1
>pt_PT.ISO8859-15
>pt_PT.UTF-8
[Retrieved from my Mac OSX Terminal window; selected instances]
Then you may set one of these locales to your R interface.
Upvotes: 1