# NOT RUN {
# To replace the old versions with the newly encoded, but retain them
# in another folder:
change.encoding = function(corpus.dir = "~/corpora/example/",
from = "ASCII", to = "utf-8")
# To place the new version in another folder called "utf8/":
change.encoding = function(corpus.dir = "~/corpora/example/",
from = "ASCII",
to = "utf-8",
output.dir = "utf8/")
# To simply replace the old version:
change.encoding = function(corpus.dir = "~/corpora/example/",
from = "ASCII",
to = "utf-8",
keep.original = FALSE)
# }
Run the code above in your browser using DataLab