| detect_encoding | R Documentation |
Detect file encoding
detect_encoding(filepath, n_lines = 10)
filepath |
Character. Path to file. |
n_lines |
Integer. Number of initial lines sampled for UTF-8 validity (in addition to a fixed 10 KB raw-byte prefix used for BOM / endianness detection). Sampling the head is sufficient because BOM and byte-order markers appear at file start, and U+FFFD substitution surfaces early. |
Character. Detected encoding name.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.