[R] locale problem in W98

Prof Brian Ripley ripley at stats.ox.ac.uk
Wed Jan 7 18:32:59 CET 2004

What happens if you

1) source() a file containing those characters.
2) Use Rterm?
3) Change the fonts both for the console and for graphics.  Is this the 
same for all fonts?

It sounds as if at least part of the problem is the character map that 
Rgui is using on your W98 machine.

BTW, I don't think they are `corrupted', just not treated as being in the 
encoding you intended (which has nothing to do with locales per se under 
Windows).  Rgui does not itself handle encodings, so it accepts whatever 
keycode it gets and prints/plots that code in the current font.

You do know that MicroSoft no longer supports W98?

On Wed, 7 Jan 2004, Petr Pikal wrote:

> Dear all
> I am using two computers, one with Windows2000 and the other one with W98 
> both have the same version (precompiled binary) R 1.8.1 and I have experienced a 
> slight problem with text used in plotting on W98 machine.
> When I try to write some local characters into R console
> ì¹èø¾ýáíé (not sure if it is OK on your computers)

I strongly suspect they are not: I cannot display ISO-8859-2.

> in W2000 **everything** is OK but in W98 some of the characters (1,3,4,5) are 
> changed (and the same is when I try to annotate a plot with them). When I copy it 
> from R console to some editor (e.g. Notepad) the characters are again OK and 
> when I copy the characters from editor back to console they are again corrupted.
> > Sys.getlocale()
> [1] "LC_COLLATE=Czech_Czech Republic.1250;LC_CTYPE=Czech_Czech 
> Republic.1250;LC_MONETARY=C;LC_NUMERIC=C;LC_TIME=Czech_Czec
> h Republic.1250"
> >
> is same on both and I have checked Rprofile and my profile on both computers 
> and it seems to be the same.
> I can put Czech characters on finished plots with some other program (GIMP) 
> but I prefer to do all possible annotation in R.
> Please, can you give me some hint where to look for possible solution on W98 
> machine setting.
> Thank you 
> Petr Pikal
> petr.pikal at precheza.cz
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list