[R] Sourcing files with Umlaut in path no longer works

peter dalgaard pdalgd at gmail.com
Wed Nov 21 15:39:43 CET 2012


On Nov 21, 2012, at 12:49 , Ulrike Grömping wrote:

> Dear helpeRs,
> 
> on my new machine - Windows 7 64Bit, R 2.15-2, I can no longer source files for which the path contains the o-Umlaut (ö). As a historical burden, my username is Grömping and contains that Umlaut (I wouldn't have chosen it now, but decided to keep it for easy transfer). I have had the difficulty that I couldn't use the R CMD tools on files with Umlauts in the path (and solved it by having a dedicated directory without umlaut in the path for that purpose), but so far (Windows XP and earlier R versions) sourcing from within R worked fine.
> 
> The issue is that the o-Umlaut (ö) is always replaced by a capital A with tilde above together with a paragraph symbol (ö). Apparently, the c3b6  used for the o-Umlaut in some encoding is translated back to the ö. Can I somehow fix this? Or is it a bug?

Without a reproducible example, it is hard to tell where things are going wrong, but the symptoms are those of utf-8 codes being sent to something that expects latin1 (or one of the "8th bit ASCII" variations, anyway).

> 
> Best regards,
> Ulrike
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com




More information about the R-help mailing list