[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.
>  "\303\274" (I think the unicode of the character)
> and inserting, for instance
> 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?
> R-help at stat.math.ethz.ch mailing list
> 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