Read / write files encoded in UTF-8
Read or write files, assuming they are encoded in UTF-8.
readLines(encoding = 'UTF-8') (a warning will be issued if
non-UTF8 lines are found), and
writeLines(enc2utf8(text), useBytes = TRUE).
read_utf8(con, error = FALSE)
write_utf8(text, con, ...)
A connection or a file path.
Whether to signal an error when non-UTF8 characters are detected (if
FALSE, only a warning message is issued).
A character vector (will be converted to UTF-8 via
Other arguments passed to
useBytes, which is