[R-SIG-Mac] scan(file, encoding=?)

Alexy Khrabrov deliverable at gmail.com
Sat Nov 24 14:47:31 CET 2007


I'm trying to read a file in Windows CP1251 encoding (8-byte  
Cyrillics).  My Mac's iconv understands it fine under that alias.   
Alas, I get an error, invalid multibyte string when trying to read  
it.  When I convert it to UTF-8 with iconv and read without  
encoding=, all is well.  However, I'd like to be able to read it in  
as 8-byte encoding as my character arrays are long.  How can I verify  
the list of all possible options which the encoding= parameter takes,  
and what can prevent R.app from reading it properly?

Cheers,
Alexy



More information about the R-SIG-Mac mailing list