[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"
 [6] "RÃ.Â.gion"    "Appellation"  "Vignoble"     "Couleur"
[11] "Classement"   "Cuve"         "mois"         "Bio"
[16] "X."           "CÃ.Â.page..2" "X..1"         "CÃ.Â.page..3"
[21] "CÃ.Â.page..4" "X..3"         "CÃ.Â.page..5" "X..4"
[26] "QuantitÃ.Â."  "Internet"    

The locale are set as follows:

> Sys.getlocale()

I tried to play with Emacs' coding systmes with no luck!  Any idea on
how to handle this?


Gérald Jean

More information about the ESS-help mailing list