std.txt
valid_utf(filename) -> is_valid
filename
is_valid
Check if a file contains valid UTF-8 text
Reads up to the first 512 bytes of the file and validates them as UTF-8 using utf.valid. Returns false if the file cannot be opened or if any byte sequence is invalid.
utf.valid