Hi,
First of all, thank you for you reply. It was very helpfull. I have another problem: I have changed the locale to pt_pt.iso885...@euro. Now the problem that I reported earlier doesnt occur . print("dúvida") [1] "dúvida" My system information now is the following: Sys.getlocale() [1] "lc_ctype=pt_pt.iso885...@euro;LC_NUMERIC=C;lc_time=pt_pt.iso885...@euro;lc_collate=pt_pt.iso885...@euro; LC_MONETARY=C;lc_messages=pt_pt.iso885...@euro;lc_paper=pt_pt.iso885...@euro;LC_NAME=C;LC_ADDRESS=C; LC_TELEPHONE=C;lc_measurement=pt_pt.iso885...@euro;LC_IDENTIFICATION=C" [daniel.fernan...@pt-lnx13 ~]$ locale lang=pt_pt.iso885...@euro lc_ctype=pt_pt.iso885...@euro lc_numeric=pt_pt.iso885...@euro lc_time=pt_pt.iso885...@euro lc_collate=pt_pt.iso885...@euro lc_monetary=pt_pt.iso885...@euro lc_messages=pt_pt.iso885...@euro lc_paper=pt_pt.iso885...@euro lc_name=pt_pt.iso885...@euro lc_address=pt_pt.iso885...@euro lc_telephone=pt_pt.iso885...@euro lc_measurement=pt_pt.iso885...@euro lc_identification=pt_pt.iso885...@euro LC_ALL= However, if I utilise the tcltk package and try to build a frame with the label dúvida the string appears incorrect. My guess is that this problem is also related with the locales. Does Tcl/tk utilise a different locale? Thanks in advance, Daniel > Date: Fri, 11 Jun 2010 17:54:34 -0400 > From: murdoch.dun...@gmail.com > To: danielpas...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] R in Linux: problem with special characters > > daniel fernandes wrote: > > > > > > > > Hi, > > > > Im working with the 64 bit version of R 2.11.0 for Linux. My session info > > is: > > > > R version 2.11.0 (2010-04-22) > > x86_64-redhat-linux-gnu > > > > locale: > > [1] C > > > > attached base packages: > > [1] stats graphics grDevices utils datasets methods base > > > > > > When I try to print words with special characters the result is that the > > expression printed has some kind of code substituting the special > > character. For example, if I run print(dúvida) the result is: > > > > > print("dúvida") > > [1] "d\372vida" > > > > This as problem has something to do with the locale settings? If I run the > > locale command in the Linux server, I get: > > > > Yes, it's your locale settings. The C locale doesn't support the "ú" > character in your string, and displays it in octal. > > Duncan Murdoch > > > > [daniel.fernan...@pt-lnx13 ~]$ locale > > LANG=pt_PT.UTF-8 > > LC_CTYPE="C" > > LC_NUMERIC="C" > > LC_TIME="C" > > LC_COLLATE="C" > > LC_MONETARY="C" > > LC_MESSAGES="C" > > LC_PAPER="C" > > LC_NAME="C" > > LC_ADDRESS="C" > > LC_TELEPHONE="C" > > LC_MEASUREMENT="C" > > LC_IDENTIFICATION="C" > > LC_ALL=C > > > > Thanks in advance for your help, > > > > Daniel > > > > > > > > TRANSFORME SUAS FOTOS EM EMOTICONS PARA O MESSENGER. CLIQUE AQUI E VEJA > > COMO. > > _________________________________________________________________ > > VEJA SEUS EMAILS ONDE QUER QUE VOCÊ ESTEJA, ACESSE O HOTMAIL PELO SEU > > CELULAR AGORA. > > > > =Live_Hotmail&utm_medium=Tagline&utm_content=VEJASEUSEM84&utm_campaign=MobileServices > > [[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. > > > _________________________________________________________________ ACESSE O MESSENGER DO SEU CELULAR AGORA MESMO. CLIQUE E VEJA AQUI UM PASSO A PASSO. rce=Live_Hotmail&utm_medium=Tagline&utm_content=ACESSEOMES83&utm_campaign=MobileServices [[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.