Learn R Programming

icesTAF (version 3.6.0)

latin1.to.utf8: Convert File Encoding

Description

Convert file encoding between "latin1" and "UTF-8".

Usage

latin1.to.utf8(file, force = FALSE)

utf8.to.latin1(file, force = FALSE)

Arguments

file

a filename.

force

whether to perform the conversion even if the current file encoding cannot be verified with file.encoding. Not recommended.

See Also

iconv converts the encoding of a string.

file.encoding examines the encoding of a file.

icesTAF-package gives an overview of the package.

Examples

Run this code
if (FALSE) {
utf8.to.latin1("data.txt")
latin1.to.utf8("data.txt")
}

Run the code above in your browser using DataLab