read_to_utf8: Reads file as UTF-8, convert it if other encoding is deteted

View source: R/disambr_utils.r

read_to_utf8R Documentation

Reads file as UTF-8, convert it if other encoding is deteted

Description

Reads file as UTF-8, convert it if other encoding is deteted

Usage

read_to_utf8(f, bytes_to_check = 2^14)

Arguments

f

file path

bytes_to_check

how long to check for encoding (save time for large files)

Value

file text as string


stasvlasov/disambr documentation built on Aug. 10, 2022, 12:03 p.m.