[R] Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
NOEL Yvonnick
yvonnick.noel at uhb.fr
Sun Mar 11 19:08:42 CET 2007
Dear R users,
I'm trying to have a gWiddgetsRGtk2 script run under R-2.4.1. The script
run OK under Linux but all accentuated characters appear as "?" when the
script is run under Windows.
As Gtk+ requires UTF-8, I thought it was the source of the problem and
tried to change the default encoding (1252) in the following way:
>Sys.setlocale("LC_CTYPE","fr_FR.UTF-8")
[1] "fr_FR.UTF-8"
But when I try as a check:
>Sys.getlocale("LC_TYPE")
[1] "French_France.1252"
So it seems that Sys.setlocale() has not changed anything. What am I
doing wrong ?
Thank you for your help,
Yvonnick Noel
U. of Rennes
France
More information about the R-help
mailing list