powered by
Examine file encoding.
file.encoding(file)
"latin1", "UTF-8", "unknown", or NA.
"latin1"
"UTF-8"
"unknown"
NA
This function requires the file shell command to be in the path. Otherwise, this function returns NA.
file
a filename.
Encoding examines the encoding of a string.
Encoding
latin1.to.utf8 converts files from latin1 to UTF-8 encoding.
latin1.to.utf8
latin1
UTF-8
line.endings examines line endings.
line.endings
TAF-package gives an overview of the package.
TAF-package
if (FALSE) { file.base <- system.file(package="base", "DESCRIPTION") file.nlme <- system.file(package="nlme", "DESCRIPTION") file.encoding(file.base) # ASCII file.encoding(file.nlme) }
Run the code above in your browser using DataLab