idEncoding: detect the encoding of a text file

Description Usage Arguments Value Author(s) Examples

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 2, 2019, 6:16 p.m.