[R] R does not support UTF-8 (was german umlaut problem under MacOS)
Brian D Ripley
ripley at stats.ox.ac.uk
Wed Dec 15 16:29:36 CET 2004
You wrote your mail in UTF-8. R does not support UTF-8, and that is both
documented and announced on startup in such a locale (at least on OSes
with standard-conforming implementations):
gannet% env LANG=en_GB.utf8 R
R : Copyright 2004, The R Foundation for Statistical Computing
Version 2.0.1 (2004-11-15), ISBN 3-900051-07-0
...
WARNING: UTF-8 locales are not currently supported
Solution: do not use an unsupported locale.
On Wed, 15 Dec 2004, joerg van den hoff wrote:
> I did not find this in the archive (hope it isn't there...):
>
> the current release of R (2.0.1) for MacOS (10.3.6) seems not to handle
> german special characters like 'ü' correctly:
I get two characters (Atilde quarter) here.
> > f <- 'ü'
>
> can be entered at the prompt, but echoing the variable yields
You mean printing the contents, I presume.
> [1] "\303\274" (I think the unicode of the character)
>
> and inserting, for instance
>
> text(1,2,f)
>
> in some plot seems to insert two characters (âÂÂú) (probably an
> interpretation of the first and second group of the unicode?).
>
> I believe, this is a R problem or is there a simple configuration switch?
>
>
> thanks
>
> joerg
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.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