Description Usage Arguments Value Examples
detect file encoding for inputted file
1 2 | detectFileEncoding(file, n = -1,
default = getOption("encoding"))
|
file |
to read from, or a |
n |
integer. The (maximal) number of lines to read. Negative values indicate that one should read up to the end of input on the connection. |
default |
default encoding if fail to expect. |
encoding name
1 2 3 4 5 6 7 | big5encfile <- file.path(system.file(package="Ruchardet"),"tests","big5.txt")
detectFileEncoding(big5encfile)
## Not run:
detectFileEncoding("http://www.ppomppu.co.kr/")
detectFileEncoding("http://freesearch.pe.kr")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.