[R] Problem with accented characters in portuguese
Luis Torgo
ltorgo at liacc.up.pt
Tue Nov 26 19:58:45 CET 2002
On Tuesday 26 November 2002 18:16, Prof Brian Ripley wrote:
> This is a function of your OS: you haven't told us the version of Windows,
> nor what locale it thinks you are in, nor if you are using Rterm or Rgui.
Maybe it was not clear on my message but I did mentioned that I'm using Rgui.
> > Here it goes a trace of the "problem":
> >
> > First under Rgui
> >
Regarding the Windows version it is Windows 2000 Professional.
Moreover, the problem does not seem to be a OS or locale problem, as I'm using
the same locale under ESS or under Rgui and the behaviour is different.
Moreover, using exactly the same portuguese word (salário) under two
different contexts, one as an object name, and the other as a data frame
column name, the behaviour of R is different (but only under Rgui and not
under ESS, as I've tried to shown on the trace I've send in the previous
message).
In any case my locale info (on both ESS and Rgui) is:
On Rgui:
> Sys.getlocale()
[1]
"LC_COLLATE=Portuguese_Portugal.1252;LC_CTYPE=Portuguese_Portugal.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=Portuguese_Portugal.1252"
On ESS:
> Sys.getlocale()
[1]
"LC_COLLATE=Portuguese_Portugal.1252;LC_CTYPE=Portuguese_Portugal.1252;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=Portuguese_Portugal.1252"
Reflecting a bit more on this issue I think a possible explanation for this
different behaviour is that ESS uses Rterm and not Rgui, which means that
Rterm and Rgui apparently are acting differently with the same instructions,
in spite of the locale information and OS settings being exactly the same.
--
Luis Torgo
FEP/LIACC, University of Porto Phone : (+351) 22 607 88 30
Machine Learning Group Fax : (+351) 22 600 36 54
R. Campo Alegre, 823 email : ltorgo at liacc.up.pt
4150 PORTO - PORTUGAL WWW : http://www.liacc.up.pt/~ltorgo
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the R-help
mailing list