encoding(encodedTexts)
# show detected value for each text, versus known encoding
data.frame(labelled = names(encodedTexts), detected = encoding(encodedTexts)$all)
encoding(ukimmigTexts)
encoding(inaugCorpus)
encoding(ie2010Corpus)
# Russian text, Windows-1251
mytextfile <- textfile("http://www.kenbenoit.net/files/01_er_5.txt", cache = FALSE)
encoding(mytextfile)
Run the code above in your browser using DataLab