[R] displaying Cyrillic in RGui under Windows

Roger Levy rlevy at inf.ed.ac.uk
Tue Feb 7 19:03:43 CET 2006


Prof Brian Ripley wrote:
> On Tue, 7 Feb 2006, Roger Levy wrote:
> 
>> I have a data frame with Cyrillic text that I would like to be able to
>> view under RGui.  Unfortunately I can't figure out from the manuals how
>> to make this happen -- can someone point me in the right direction?
> 
> You can only do this if you run RGui in a Cyrillic locale.  
> Unfortunately there are several incompatible Cyrillic encodings, so 
> let's hope this is the Windows one.  If so, set Windows to Russian as 
> per the rw-FAQ, select LANGUAGE=en and it should work.

Thanks, I understand better now.  Apparently the only usable encoding is 
Windows-1251, which R switches to upon the command 
Sys.setlocale(,"russian").  After converting my data files to that 
encoding and switching the Windows locale, everything works great.

Many thanks.

Roger




More information about the R-help mailing list