[R] locale problem in W98
Petr Pikal
petr.pikal at precheza.cz
Fri Jan 9 08:04:06 CET 2004
Hallo
On 7 Jan 2004 at 17:32, Prof Brian Ripley wrote:
> What happens if you
>
> 1) source() a file containing those characters.
it was the same
> 2) Use Rterm?
did not try it
> 3) Change the fonts both for the console and for graphics. Is this
> the same for all fonts?
I tried and now it is ok. It helped to change Courier New to
Courier and to add CE to some font declaration as Times New
Roman CE.
BTW I tried help.search("font") and went through Rsite search
but nothing pointed me to correct solution (Rdevga, Rconsole).
Adding "For some locale font problems see also Rdevga,
Rconsole" would be great let say in Hershey font page.
Thank you again for pointing me to right direction.
>
> 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
>
> ______________________________________________
> 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
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list