
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.iso885915@euro. Now the problem that I reported earlier doesn’t occur .

 

print("dúvida")
[1] "dúvida"

 

My system information now is the following:

 

Sys.getlocale()
[1] "LC_CTYPE=pt_PT.iso885915@euro;LC_NUMERIC=C;LC_TIME=pt_PT.iso885915@euro;LC_COLLATE=pt_PT.iso885915@euro;
LC_MONETARY=C;LC_MESSAGES=pt_PT.iso885915@euro;LC_PAPER=pt_PT.iso885915@euro;LC_NAME=C;LC_ADDRESS=C;
LC_TELEPHONE=C;LC_MEASUREMENT=pt_PT.iso885915@euro;LC_IDENTIFICATION=C"
 

 

[daniel.fernandes@pt-lnx13 ~]$ locale


 

LANG=pt_PT.iso885915@euro
LC_CTYPE=pt_PT.iso885915@euro
LC_NUMERIC=pt_PT.iso885915@euro
LC_TIME=pt_PT.iso885915@euro
LC_COLLATE=pt_PT.iso885915@euro
LC_MONETARY=pt_PT.iso885915@euro
LC_MESSAGES=pt_PT.iso885915@euro
LC_PAPER=pt_PT.iso885915@euro
LC_NAME=pt_PT.iso885915@euro
LC_ADDRESS=pt_PT.iso885915@euro
LC_TELEPHONE=pt_PT.iso885915@euro
LC_MEASUREMENT=pt_PT.iso885915@euro
LC_IDENTIFICATION=pt_PT.iso885915@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.duncan@gmail.com
> To: danielpascoa@hotmail.com
> CC: r-help@r-project.org
> Subject: Re: [R] R in Linux: problem with special characters
> 
> daniel fernandes wrote:
> >
> >
> >
> > Hi,
> > 
> > I’m 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.fernandes@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]]

