| read_file_utf8 | R Documentation |
Attempts UTF-8 first, falls back to a byte-level read (utf-8-sig equivalent)
on failure. Any occurrence of the Unicode replacement character U+FFFD
(a sign of mojibake / invalid bytes silently substituted by the reader) is
reported via log_warning, or aborts when strict = TRUE (M-C3).
read_file_utf8(filepath, warn = TRUE, strict = FALSE)
filepath |
Character. Path to file. |
warn |
Logical. Whether to warn on encoding fallback. |
strict |
Logical. If |
Character vector of file lines.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.