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

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