powered by
Convert file encoding between "latin1" and "UTF-8".
"latin1"
"UTF-8"
latin1.to.utf8(file, force = FALSE)utf8.to.latin1(file, force = FALSE)
utf8.to.latin1(file, force = FALSE)
a filename.
whether to perform the conversion even if the current file encoding cannot be verified with file.encoding. Not recommended.
file.encoding
iconv converts the encoding of a string.
iconv
file.encoding examines the encoding of a file.
icesTAF-package gives an overview of the package.
icesTAF-package
# NOT RUN { utf8.to.latin1("data.txt") latin1.to.utf8("data.txt") # } # NOT RUN { # }
Run the code above in your browser using DataLab