[R] German umlaut in xlab

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Sun Apr 7 19:56:08 CEST 2002


On Sun, 7 Apr 2002, Henrik Bengtsson wrote:

> I have the same problem on WinMe and R v1.4.1 with Swedish keyboard
> settings:
>
>   plot(1:10, xlab="äöü")
>
> works in Rgui but not in Rterm under Cygwin bash where it instead prints
> "quote down", "qoute up" and a "open box". However,

Prints?  It is a plot command. What does it plot?

>   plot(1:10, xlab="\344\366\374")
>
> does the same thing. Trying
>
>   print("\344\366\374")
>
> "äöü" will not be shown. Again, with Rgui it works. So there seems to be
> some differences in the character encoding etc for the upper ASCII half. I
> noticed that when I changed my keyboard settings from Swedish to English the
> plot call above works (but not the print call which I believe is due to my
> Cygwin/bash settings).

I/O in Rterm is entirely at the mercy of the terminal within which it is
run. In particular, it is unlikely that it is set up to use ISOLatin1
encoding, whereas Rgui is set up to use WinANSI (which is almost the
same).

For example, Rterm should work under a correctly set up NTemacs and ESS,
and indeed it seems to under my rarely used setup.

-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list