When using the R functions to manipulate files in Windows, e.g. dir(), those with non-English characters, like Cyrillic, are presented as a sequence of \"?\".
dir()
try this: iconv("привет.txt","UTF-8","CP1251")
iconv("привет.txt","UTF-8","CP1251")
Convert Character Vector between Encodings:https://stat.ethz.ch/R-manual/R-devel/library/base/html/iconv.html
The iconv library: http://www.delorie.com/gnu/docs/recode/recode_30.html