-
Notifications
You must be signed in to change notification settings - Fork 18
Dealing with Non English Files Folders
I use here "Hebrew" in place of Non-English because that is language me and my students most often work with. But these should hold true for any non ASCII text really (I think)...
My file (
csv
,sav
,xls
,xlsx
...) has Hebrew in it, but when I load the file it looks like thisùìåí
or like this<U+05E0><U+05EA><U+05D5>
.
You just need to change the local setting in R to better support Hebrew, by running this line:
Sys.setlocale("LC_ALL", "Hebrew")
I can't read or open a file that has Hebrew in it's name, or a file that is in a folder with Hebrew in it's name, or that is in a folder with Hebrew in it's name...
Basically, somewhere in the full file path (which generally looks like this: C:/Folder/Another/Folder/On/My/Computer/File.txt
) has Hebrew in it - it doesn't really matter where along the path, could be in the name of the file, in the name of the folder, or in the name any of the parent folders...
If running Sys.setlocale("LC_ALL", "Hebrew")
doesn't solve the problem (It sometimes can! Try this first!), the only solution is to not use Hebrew in your file/folder names - make sure you structure your projects and folders in such a way.