I formatted my laptop and re-install R and Rstudio.
When I use "./ + Tab" To look for files in the directory,
Rstudio shows me questions ??? instead of Hebrew letters.
The view in the file pane is correct
I changed:
Sys.setlocale("LC_ALL", "Hebrew")
options(encoding ="UTF-8-BOM")
and also tools->code->saving->utf-8
Any other places where I can change the encodings?
I was Able to find the problem, posting here as it might help others:
When I ran l10n_info() I saw that system.codepage=1252
As windows locale was English(US), change the locale to Israel(Hebrew) fixes the issue.
If you are concerned, Windows default language is still English
Here is how I changed the locale:
Control Panel -> Region -> Administrative -> Change System Locale" -> Hebrew(Israel)