latin1.to.utf8: Convert File Encoding

Description Usage Arguments Value Note See Also Examples

View source: R/latin1.to.utf8.R

Description

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

Usage

1
2
3

Arguments

file

a filename.

force

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

Value

No return value, called for side effects.

Note

In TAF, text files that have non-ASCII characters must be encoded as UTF-8.

See Also

iconv converts the encoding of a string.

file.encoding examines the encoding of a file.

TAF-package gives an overview of the package.

Examples

1
2
3
4
5
## Not run: 
utf8.to.latin1("data.txt")
latin1.to.utf8("data.txt")

## End(Not run)

TAF documentation built on April 7, 2021, 5:06 p.m.