idEncoding: detect the encoding of a text file

Description Usage Arguments Value Author(s) Examples

View source: R/utf8latex.R

Description

idEncoding detects the encoding of a text file by checking the byte order mark (BOM)

Usage

1
idEncoding(filename)

Arguments

filename

UTF-8 file

Value

character

Author(s)

Wikipedia

Examples

1
2
3
4
5
## Not run: 
fileIn<-system.file('extdata/TextGreekBom.txt', package='utf8latex')
idEncoding(fileIn)

## End(Not run)

utf8latex documentation built on May 30, 2017, 4:30 a.m.