Hi Petr, Please try: Sys.setlocale("LC_ALL", "Hebrew") # And a<- read.table("http://www.talgalili.com/files/aa.txt",encoding="UTF-8" ,check.names=FALSE, header = T, sep = "\t") # Notice the use of encoding a And let me know if that works... The only question I have left is how can you set Sys.setlocale("LC_ALL", "Hebrew") As the default of R when it is being loaded. Thanks again, Tal ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- On Fri, Mar 19, 2010 at 9:52 AM, Petr PIKAL wrote: > Hi > > Thanks, I am surprised, as I tried it after Bill's post and it did not > work on my machine W2000, So probably the success or failure is system > specific. > > Regards > Petr > > Tal Galili napsal dne 19.03.2010 08:43:11: > > > It worked ! > > > > Thank you very much Petr! > > > > Tal > > > > > > > > ----------------Contact > Details:------------------------------------------------------- > > Contact me: Tal.Galili@gmail.com | 972-52-7275845 > > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | > > > www.r-statistics.com (English) > > > > ---------------------------------------------------------------------------------------------- > > > > > > > > > On Fri, Mar 19, 2010 at 9:32 AM, Petr PIKAL > wrote: > > Hi > > > > I am not definitely expert in locales. It is a relict from time I worked > > with W95/98 where were some problems with locale setting and/or > graphing. > > I would try just before reading in a file to change locale setting by > > > > ?Sys.setlocale > > > > > Sys.getlocale() > > [1] "LC_COLLATE=Czech_Czech Republic.1250;LC_CTYPE=Czech_Czech > > Republic.1250;LC_MONETARY=Czech_Czech > > Republic.1250;LC_NUMERIC=C;LC_TIME=Czech_Czech Republic.1250" > > > Sys.setlocale("LC_ALL", "Hebrew") > > [1] > > "LC_COLLATE=Hebrew_Israel.1255;LC_CTYPE=Hebrew_Israel. > > > > 1255;LC_MONETARY=Hebrew_Israel.1255;LC_NUMERIC=C;LC_TIME=Hebrew_Israel.1255" > > > Sys.getlocale() > > [1] > > "LC_COLLATE=Hebrew_Israel.1255;LC_CTYPE=Hebrew_Israel. > > > > 1255;LC_MONETARY=Hebrew_Israel.1255;LC_NUMERIC=C;LC_TIME=Hebrew_Israel.1255" > > > > and then try to read in the data. > > > > Regards > > Petr > > > > > > > > > Tal Galili napsal dne 18.03.2010 16:23:25: > > > > > Hello Petr, > > > > > > Since you seem to understand about locals, maybe you could (and will > be > > > willing) to help me. > > > > > > I wish to read in a simple file in Hebrew. It has just two lines: > > > שלוםרבשובך > > > ציפורהנחמדת > > > > > > But when I use: > > > read.table("c:\\temp.txt") > > > I get: > > > V1 > > > 1 ùìåíøáùåáê > > > 2 öéôåøäðçîãú > > > > > > My output for: > > > l10n_info() > > > Is: > > > $MBCS > > > [1] FALSE > > > > > > $`UTF-8` > > > [1] FALSE > > > > > > $`Latin-1` > > > [1] TRUE > > > > > > $codepage > > > [1] 1252 > > > And for: > > > Sys.getlocale() > > > > > > Is: > > > [1] "LC_COLLATE=English_United States.1252;LC_CTYPE=English_United > > States. > > > 1252;LC_MONETARY=English_United States. > > > 1252;LC_NUMERIC=C;LC_TIME=English_United States.1252" > > > > > > Can you suggest to me what to try and change to allow me to load the > > file correctly ? > > > > > > Thanks! > > > > > > Tal > > > > > > > > > > > > ----------------Contact > > Details:------------------------------------------------------- > > > Contact me: Tal.Galili@gmail.com | 972-52-7275845 > > > Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) > | > > > > > www.r-statistics.com (English) > > > > > > > ---------------------------------------------------------------------------------------------- > > > > > > > > > > > > > > 2010/3/18 Petr PIKAL > > > Hi > > > > > > r-help-bounces@r-project.org napsal dne 18.03.2010 11:16:26: > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > there´s something that really bothers me about R and after hours and > > > hours of > > > > internet research, I´m still stuck with the same problem: I > installed > > R > > > and it > > > > is in Spanish, as the system on my work. I would really like it in > > > English and > > > > there seems to be no way to change that!?! I´m doing an abroad > > > internship, so > > > > my Spanish is far from perfect and my tutorial is in English. > > > > > > > > > > > > > > > > Is there any way that I´m not aware of to change the language > > > environment of R? > > > > > Maybe > > > > > > ?Sys.getlocale > > > > > > Sys.setlocale("LC_ALL", "Czech") # for Czech locale > > > > > > Regards > > > Petr > > > > > > > > > > > > > > > > > > > > > > Thanks a lot! > > > > > > > > Katharina > > > > > > > > _________________________________________________________________ > > > > [[elided Hotmail spam]] > > > > > > > > [[alternative HTML version deleted]] > > > > > > > > ______________________________________________ > > > > R-help@r-project.org mailing list > > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > > PLEASE do read the posting guide > > > http://www.R-project.org/posting-guide.html > > > > and provide commented, minimal, self-contained, reproducible code. > > > > > > ______________________________________________ > > > R-help@r-project.org mailing list > > > https://stat.ethz.ch/mailman/listinfo/r-help > > > PLEASE do read the posting guide > > http://www.R-project.org/posting-guide.html > > > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]]