[R-SIG-Mac] Encoding issue with text output from R

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Feb 1 11:30:22 CET 2013


On 31/01/2013 21:15, MacQueen, Don wrote:
> Something like this might help:
>
>      Sys.setlocale(category = "LC_ALL", locale = "C")
>
>
> check
>    Sys.getlocale()
> beforehand.
>
> -Don
>
>
As others have said, use options(fancyQuotes=FALSE).  Please don't 
change all the locale settings just because of Microsoft's bugs.

But really the problem is Word.  UTF-8 is the standard encoding for OS 
X, and Word should be defaulting to it (and not Mac Roman).  Looks like 
Word cannot recognize a UTF-8 file (which might be because MS seems to 
think they have BOMs, which the standard permits but does not require). 
  And although Word 2008 is rather old, Word 2011 shows the same bug.

-- 
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-SIG-Mac mailing list