[ESS] European characters in R.
Gérald Jean
gerald.jean at videotron.ca
Mon Nov 23 18:29:44 CET 2009
Hello there,
I use:
R version 2.9.2 (2009-08-24)
Copyright (C) 2009 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
on Ubuntu 9.10, Emacs-22.2.1 and ESS-5.4
I have a data file containing lots of European characters, French,
German, Italian and so on. I can read it ok in R but I can't display
the characters correctly. Here a simple example:
> ttt.g <- "gérald"
Erreur : caractères multioctets incorrects dans l'analyse de code
(parser) Ã la ligne 1
outputting the colnames of my data set I get:
> names(ttt)
[1] "ID" "Domaine" "Nom" "MillÃ.Ã.sime"
"Pays"
[6] "RÃ.Ã.gion" "Appellation" "Vignoble" "Couleur"
"Alcool"
[11] "Classement" "Cuve" "mois" "Bio"
"CÃ.Ã.page..1"
[16] "X." "CÃ.Ã.page..2" "X..1" "CÃ.Ã.page..3"
"X..2"
[21] "CÃ.Ã.page..4" "X..3" "CÃ.Ã.page..5" "X..4"
"Prix"
[26] "QuantitÃ.Ã." "Internet"
The locale are set as follows:
> Sys.getlocale()
[1]
"LC_CTYPE=fr_CA.UTF-8;LC_NUMERIC=C;LC_TIME=fr_CA.UTF-8;LC_COLLATE=fr_CA.UTF-8;LC_MONETARY=C;
LC_MESSAGES=fr_CA.UTF-8;LC_PAPER=fr_CA.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=fr_CA.UTF-8;
LC_IDENTIFICATION=C"
I tried to play with Emacs' coding systmes with no luck! Any idea on
how to handle this?
Thanks,
Gérald Jean
More information about the ESS-help
mailing list